Container Lootpool Generator

generate lootpools with container & scriptevents
Project Animation

Welcome To Criptonain Industries
by Cript0 panda

Container Lootpool Generator:

/scriptevent my:clone_and_move <x1 y1 z1> <x2 y2 z2> <destX destY destZ> <min-max>
 

 

Step-by-Step Example:

If you have a wall of chests from 0 64 0 to 2 66 0 and you want to move between 5 and 20 random items into a hopper at 10 64 10, you would type:
mcfunction
/scriptevent my:clone_and_move 0 64 0 2 66 0 10 64 10 5-20
Key Features to Know:
  • Coordinate Shortcuts: You can use ~ (e.g., ~ ~1 ~) to reference coordinates relative to yourself or the command block running the script.
  • Randomization: The script picks items from the source area and places them into random empty slots in the destination container.
  • Scoreboard Tracking: Every time the script checks a source container, it updates a scoreboard objective called item_count.
    • It lists items using the format: c_x_y_z: item_name.
    • You can see this by typing /scoreboard objectives setdisplay sidebar item_count.
  • Safety: It only moves items into empty slots in the destination. If the destination is full, it will stop moving items.
Requirements:
  • Beta APIs: Ensure the "Beta APIs" experimental toggle is turned ON in your world settings.
  • Permissions: You must have operator permissions to run /scriptevent.
 

Container Lootpool Generator Team

profile avatar
  • 2
    Followers
  • 16
    Projects
  • 1.0K
    Downloads

More from cript0pandaView all