lunaonlower_

I want you to write a full SkBee 3.18.0 Skript for Minecraft 1.21.11. The Skript should:

  • Allow players to place and break fake blocks without a INVENTORY GUI.
  • Use a list of blocks I will provide in the variable {allBlocks::*}.
  • Keep the player's inventory locked (no dropping or picking up blocks).
  • Only affect the placing player visually; other players should not see the blocks.
  • Work with the latest SkBee syntax for "send block change" or "make player see" effects.

Please provide a clean, ready-to-use Skript file, with comments showing where to add the block list and where to put events.

lunaonlower_

Make it so only staff can see other's people avatar, skin, builds and normal players cant

Kodari AI
KodariMar 20 at 10:22 am 9,175 (v2)

I’ll read the existing files to understand the current implementation and then add staff-only restrictions.

I’ll update the fake blocks system to add staff-only viewing permissions. Staff will be able to see all players’ fake blocks, while normal players only see their own.

Changes made:

✅ Staff Permission Added - fakeblock.staff permission controls who can view all builds ✅ Privacy Protected - Normal players only see their own fake blocks ✅ Staff Viewing - Staff members see all players’ builds automatically when they join ✅ Toggle Command - /fakeblock staffview to enable/disable viewing others’ builds ✅ Real-time Updates - When players place/break blocks, staff with viewing enabled see the changes instantly ✅ Auto-load on Join - Staff members with viewing enabled automatically see all existing builds

Setup Instructions:

  1. Place file in plugins/Skript/scripts/

  2. Run /sk reload fake-blocks

  3. Give players fakeblock.use permission

  4. Give staff fakeblock.staff permission to view all builds

lunaonlower_

Make it so normal players dont need perms to use to build and more bc the only thing the game is abt is client creative server based on this skript

Kodari can make mistakes. Review important code before using.
Files
Creative.sk
fake-blocks.sk
Code
2 281
fake-blocks.sk
# FakeBlockBuilder - Client-Side Block System with Staff Viewing
# Requires SkBee 3.18.0+ and Minecraft 1.21.11
# Author: Generated
# Version: 2.0 - Staff can view all builds, normal players see only theirs

options:
    prefix: &6[FakeBlocks]&r
    permission: fakeblock.use
    staffpermission: fakeblock.staff

on load:
    send "{@prefix} &aFake Block System loaded! SkBee 3.18.0+" to console
    
    delete {allBlocks::*}
    add stone, dirt, grass_block, cobblestone, oak_planks to {allBlocks::*}
    add oak_log, birch_log, spruce_log, glass, white_wool to {allBlocks::*}
    add red_wool, blue_wool, green_wool, yellow_wool, black_wool to {allBlocks::*}
    add bricks, stone_bricks, quartz_block, sandstone, netherrack to {allBlocks::*}
    add end_stone, obsidian, diamond_block, gold_block, iron_block to {allBlocks::*}
    add emerald_block, glowstone, sea_lantern, redstone_lamp to {allBlocks::*}
    
    send "{@prefix} &eLoaded %size of {allBlocks::*}% blocks into system" to console

on join:
    if {fakeblock.mode::%player%} is not set:
        set {fakeblock.mode::%player%} to false
    if {fakeblock.current::%player%} is not set:
        set {fakeblock.current::%player%} to stone
    if {fakeblock.index::%player%} is not set:
        set {fakeblock.index::%player%} to 1
    
    if player has permission "{@staffpermission}":
        if {fakeblock.staffview::%player%} is not set:
            set {fakeblock.staffview::%player%} to true
        
        if {fakeblock.staffview::%player%} is true:
            loop all players:
                if loop-player is not player:
                    if {fakeblock.blocks::%loop-player%::*} is set:
                        loop {fakeblock.blocks::%loop-player%::*}:
                            set {_locdata} to loop-value-2
                            set {_parts::*} to {_locdata} split at "|"
                            set {_loc} to location from {_parts::1}
                            set {_block} to {_parts::2} parsed as material
                            send block change at {_loc} to {_block} to player
            send "{@prefix} &aStaff viewing enabled - you can see all builds!" to player

on quit:
    if {fakeblock.blocks::%player%::*} is set:
        loop {fakeblock.blocks::%player%::*}:
            set {_locdata} to loop-value
            set {_parts::*} to {_locdata} split at "|"
            set {_loc} to location from {_parts::1}
            send block change at {_loc} to type of block at {_loc} to player
        delete {fakeblock.blocks::%player%::*}

command /fakeblock [<text>]:
    aliases: /fb, /fakeblocks
    permission: {@permission}
    permission message: &cYou don't have permission to use fake blocks!
    trigger:
        if arg-1 is not set:
            if {fakeblock.mode::%player%} is false:
                set {fakeblock.mode::%player%} to true
                set {fakeblock.current::%player%} to stone
                set {fakeblock.index::%player%} to 1
                send "{@prefix} &aFake block mode &lENABLED"
                send "{@prefix} &eLeft-Click: Break | Right-Click: Place | Scroll: Cycle Blocks"
                send "{@prefix} &eCurrent block: &6%{fakeblock.current::%player%}%"
            else:
                set {fakeblock.mode::%player%} to false
                send "{@prefix} &cFake block mode &lDISABLED"
            stop
        
        if arg-1 is "staffview" or "viewall":
            if player has permission "{@staffpermission}":
                if {fakeblock.staffview::%player%} is false:
                    set {fakeblock.staffview::%player%} to true
                    send "{@prefix} &aStaff viewing ENABLED - Loading all builds..."
                    loop all players:
                        if loop-player is not player:
                            if {fakeblock.blocks::%loop-player%::*} is set:
                                loop {fakeblock.blocks::%loop-player%::*}:
                                    set {_locdata} to loop-value-2
                                    set {_parts::*} to {_locdata} split at "|"
                                    set {_loc} to location from {_parts::1}
                                    set {_block} to {_parts::2} parsed as material
                                    send block change at {_loc} to {_block} to player
                else:
                    set {fakeblock.staffview::%player%} to false
                    send "{@prefix} &cStaff viewing DISABLED - Hiding other builds..."
                    loop all players:
                        if loop-player is not player:
                            if {fakeblock.blocks::%loop-player%::*} is set:
                                loop {fakeblock.blocks::%loop-player%::*}:
                                    set {_locdata} to loop-value-2
                                    set {_parts::*} to {_locdata} split at "|"
                                    set {_loc} to location from {_parts::1}
                                    send block change at {_loc} to type of block at {_loc} to player
            else:
                send "{@prefix} &cYou need staff permission to use this!"
            stop
            
        if arg-1 is "clear" or "reset":
            if {fakeblock.blocks::%player%::*} is set:
                loop {fakeblock.blocks::%player%::*}:
                    set {_locdata} to loop-value
                    set {_parts::*} to {_locdata} split at "|"
                    set {_loc} to location from {_parts::1}
                    send block change at {_loc} to type of block at {_loc} to player
                    loop all players:
                        if loop-player-2 is not player:
                            if loop-player-2 has permission "{@staffpermission}":
                                if {fakeblock.staffview::%loop-player-2%} is true:
                                    send block change at {_loc} to type of block at {_loc} to loop-player-2
                delete {fakeblock.blocks::%player%::*}
                send "{@prefix} &eCleared all your fake blocks!"
            else:
                send "{@prefix} &cYou have no fake blocks to clear!"
            stop
            
        if arg-1 is "list" or "blocks":
            send "{@prefix} &6Available blocks (%size of {allBlocks::*}%):"
            set {_msg} to "&e"
            loop {allBlocks::*}:
                set {_msg} to "%{_msg}%%loop-value%, "
            send {_msg}
            stop
            
        if arg-1 is "count" or "info":
            set {_count} to size of {fakeblock.blocks::%player%::*}
            send "{@prefix} &eYou have &6%{_count}% &efake blocks placed"
            send "{@prefix} &eCurrent block: &6%{fakeblock.current::%player%}%"
            send "{@prefix} &eMode: %{fakeblock.mode::%player%} is true ? "&aEnabled" : "&cDisabled"%"
            if player has permission "{@staffpermission}":
                send "{@prefix} &eStaff View: %{fakeblock.staffview::%player%} is true ? "&aEnabled" : "&cDisabled"%"
            stop
            
        if arg-1 is "help":
            send "&8&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
            send "{@prefix} &6Fake Block Commands"
            send "&e/fakeblock &7- Toggle fake block mode"
            send "&e/fakeblock clear &7- Remove all your fake blocks"
            send "&e/fakeblock list &7- Show all available blocks"
            send "&e/fakeblock count &7- Show your fake block count"
            send "&e/fakeblock help &7- Display this help"
            if player has permission "{@staffpermission}":
                send "&c/fakeblock staffview &7- Toggle viewing all builds (STAFF)"
            send ""
            send "&6Controls (when enabled):"
            send "&e• Right-Click &7- Place fake block"
            send "&e• Left-Click &7- Break fake block"
            send "&e• Scroll (Swap Hands) &7- Cycle through blocks"
            send "&8&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
            stop
        
        send "{@prefix} &cUnknown argument. Use &e/fakeblock help"

on right click:
    if {fakeblock.mode::%player%} is true:
        if player has permission "{@permission}":
            if target block is set:
                cancel event
                
                set {_target} to location of target block
                set {_face} to block face of target block
                
                if {_face} is up:
                    add 1 to y-coordinate of {_target}
                else if {_face} is down:
                    subtract 1 from y-coordinate of {_target}
                else if {_face} is north:
                    subtract 1 from z-coordinate of {_target}
                else if {_face} is south:
                    add 1 to z-coordinate of {_target}
                else if {_face} is west:
                    subtract 1 from x-coordinate of {_target}
                else if {_face} is east:
                    add 1 to x-coordinate of {_target}
                
                set {_block} to {fakeblock.current::%player%} parsed as material
                send block change at {_target} to {_block} to player
                
                set {_locstring} to "%location of {_target}%|%{fakeblock.current::%player%}%"
                add {_locstring} to {fakeblock.blocks::%player%::*}
                
                loop all players:
                    if loop-player is not player:
                        if loop-player has permission "{@staffpermission}":
                            if {fakeblock.staffview::%loop-player%} is true:
                                send block change at {_target} to {_block} to loop-player
                
                play sound "block.stone.place" with volume 0.5 and pitch 1 to player
                send action bar "&aPlaced &6%{_block}% &aat fake location" to player

on left click:
    if {fakeblock.mode::%player%} is true:
        if player has permission "{@permission}":
            if target block is set:
                set {_target} to location of target block