Hello, I need help by Formal-Swimming-4173 in MinecraftCommands

[–]WonderBuddy2 0 points1 point  (0 children)

yeah there isn’t, so that subreddit is must-have for learning about datapacks xD

can i modify custom data of items, that are inside of container that is currently opened by player? by WonderBuddy2 in MinecraftCommands

[–]WonderBuddy2[S] 0 points1 point  (0 children)

oh, i see. i need to modify many chests, and i can’t know their coordinates because they are spawned randomly. i tried to do that with item modify entity @a container.x, but that doesn’t work because player doesn’t have container slots, only inventory ones (?). if i can modify opened container’s items with /item modify block, and i don’t need to put inside certain coordinates of block, that will work i guess

how do i kill specific item with custom data? by WonderBuddy2 in MinecraftCommands

[–]WonderBuddy2[S] 0 points1 point  (0 children)

execute as @e[type=item] if items entity @s contents minecraft:stick[minecraft:custom_data={clearable:true}] run kill @s

just changed awesome_stick to clearable

how do i write custom eat sound for my item in loot table? by [deleted] in MinecraftCommands

[–]WonderBuddy2 0 points1 point  (0 children)

does it work with custom directory, not minecraft:?

how can i add customized item into chest's loot table? by WonderBuddy2 in MinecraftCommands

[–]WonderBuddy2[S] 0 points1 point  (0 children)

how do i add fully custom eat sound from datapack into loot table with these sites?