374: Zelda pots using a loot table. [Minecraft Map Making]

Subscribers:
3,590
Published on ● Video Link: https://www.youtube.com/watch?v=fS9VJ7swecQ



Minecraft
Game:
Minecraft (2011)
Duration: 20:05
213 views
11


Membership:    / @infernaldevice  
Ep374: Making Zelda pots that give random loot when broken.

00:00 Intro
01:25 Loot table generator
05:45 Create pot
09:00 Controller - main
13:20 Waffling
15:55 Give egg - place
17:15 Give egg - remove
17:50 Controller - place
19:10 Controller - remove

Version: 1.21

Misode Generators: https://misode.github.io/

Commands, builds and ideas for people making their own Minecraft maps.

Check out my collabs on Coppit's channel:    / coppitj  

Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord:   / discord  

The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.

Since angled brackets are not allowed in YouTube descriptions you will have to replace "greater than" and "less than" with the appropriate angled bracket.

Commands used:

Create pot:
IUN: summon interaction ~ ~-0.5 ~2 {Tags:["pot"], width:0.4, height:0.4, Passengers:[{id:"block_display", block_state:{Name:"flower_pot"}, Tags:["pot"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,0f,-0.5f],scale:[1f,1f,1f]}}]}

Controller
RUA: execute as @e[type=interaction, tag=pot] at @s on attacker run tag @e[type=interaction, tag=pot, distance=..0.1, limit=1] add break_me
CCA: execute at @e[type=interaction, tag=break_me] run loot spawn ~ ~ ~ loot {"pools":[{"rolls":1,"entries":[{"type":"minecraft:item","name":"minecraft:air","weight":1},{"type":"minecraft:item","name":"minecraft:emerald","weight":1}]}]}
CCA: execute at @e[type=interaction, tag=break_me] run playsound block.decorated_pot.break block @a ~ ~ ~ 1 1 0
CCA: execute at @e[type=interaction, tag=break_me] run kill @e[tag=pot,sort=nearest,limit=2]

Give Egg - Place:
IUN: give @p slime_spawn_egg[custom_name='{"text":"Pot: Place"}', entity_data={id:"minecraft:marker", Tags:["pot_place"]}]

Give Egg - Remove:
IUN: give @p strider_spawn_egg[custom_name='{"text":"Pot: Remove"}', entity_data={id:"minecraft:marker", Tags:["pot_remove", "pot"]}]

Controller - place
RUA: execute at @e[type=marker, tag=pot_place] run summon interaction ~ ~ ~ {Tags:["pot"], width:0.4, height:0.4, Passengers:[{id:"block_display", block_state:{Name:"flower_pot"}, Tags:["pot"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,0f,-0.5f],scale:[1f,1f,1f]}}]}
CUA: kill @e[type=marker, tag=pot_place]

Controller - remove
RUA: execute at @e[type=marker, tag=pot_remove] run kill @e[tag=pot, limit=3, sort=nearest]




Loot table Examples:
{"pools":[{"rolls":1,"entries":[{"type":"minecraft:item","name":"minecraft:emerald","weight":1},{"type":"minecraft:item","name":"minecraft:air","weight":1}]}]}

{"pools":[{"rolls":1,"entries":[{"type":"minecraft:item","name":"minecraft:emerald","weight":1},{"type":"minecraft:item","name":"minecraft:howl_pottery_sherd","weight":2},{"type":"minecraft:item","name":"minecraft:air","weight":1}]}]}







Tags:
minecraft
adventure map
map making
commands
command blocks
1.18
custom commands
redstone
map ideas
map suggesstions
custom maps
1.19



Other Statistics

Minecraft Statistics For Infernal Device

At present, Infernal Device has 181,722 views spread across 860 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.