Minecraft 1.20.5 right click detection and examples
ฝัง
- เผยแพร่เมื่อ 17 พ.ย. 2024
- Inside the advancement file
{
"criteria": {
"requirement":{
"trigger":"minecraft:using_item",
"conditions": {
"item":{
"components":{
"minecraft:food":{
"nutrition":0,
"saturation":0,
"can_always_eat": true,
"eat_seconds":99997
}
}
}
}
}
},
"rewards": {
"function": "jam:spells/meteor"
}
}
inside the function file meteor-
#fireball 15 high and far
execute at @s run summon fireball ^ ^15 ^15 {ExplosionPower:3b,power:[0.0,-0.3,0.0]}
#cooldown
schedule function jam:spells/meteor_cooldown 10s
inside the function file meteor_cooldown
advancement revoke @a only jam:meteor_advancement - เกม
You can also use knowledge books for one-time consumables.
yea thats a good idea
sample data pack can be found here to get started
github.com/InfamousJam/MCDatapacks/blob/main/sample.zip
The newest snapshot let’s you make custom data pack enchantments easily, opinion?
i did see a video on this, i haven't messed around with it yet. It looks like its still quite a bit of work to get them working, but implementing them comes built in which is huge.
Will that sword be eaten directly in survival mode?
no, since the eat time is like a million seconds, unless you held the item down for that long it will not consume the item
Hey, can I download your datapack? I don't know how to make one
you can download a sample data pack through my github here github.com/InfamousJam/MCDatapacks/blob/main/sample.zip
note this sample is for 1.20.5 and 1.20.6