How can I convert normal minecraft commands to Skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

lateeagle

Active Member
Jan 29, 2025
104
8
18
I have a command I want to create, but I cannot make it work

execute console command "setblock 446 -60 48 minecraft:barrel[facing=up]{LootTable:"zombie:chests/fisherman_loot_table"}"

I need to either find a way to rewrite it in skript or find a way to properly use the execute command thing
 
Python:
set block at location(x,y,z,world "worldname") to barrel
set {_inv} to inventory of block at location(x,y,z,world "worldname")

set slot 0 of {_inv} to stick

You can change stick. I didn't understand zombie:chests/fisherman_loot_table
 
zombie:chests/fisherman_loot_table is the loot table that should spawn inside of the barrel.

My goal is to spawn the barrel with the loot at the correct position.

zombie is the world name.
 
Python:
command /a:
    trigger:
        set {_table} to loottable from key "minecraft:chests/simple_dungeon"
        
        set {_loc} to location(446.5, -60.5, 48.5, world "zombie")

        set block at {_loc} to barrel[facing=up]

        fill inventory of block at {_loc} from {_table}
 
Error: Can't understand this expression: 'loottable from key "zombie:chests/fisherman_loot_table"'
Line: set {_table} to loottable from key "zombie:chests/fisherman_loot_table"