Started by
Barion
on
Topic category: Help with Minecraft modding (Java Edition)
How do you prevent the use of a flint and steel in a certain dimension? I've try it with the "when Item used" trigger, but it's not working.
Topic category: Help with Minecraft modding (Java Edition)
How do you prevent the use of a flint and steel in a certain dimension? I've try it with the "when Item used" trigger, but it's not working.
This solution gets what you want, but it will reset the NBT tag (tracks how much durability the item has). https://imgur.com/a/edLGoJN
In this case, you will want to make an item that look exactly like the flint and steel to replace the item in someone's inventory. Keep in mind this makes a completely new item when you leave, but this is what I could come up with for you short term. Just remember to make it replace the replaced item when you leave said dimension. Hope this helps you!
Are you sure that it's not possible with event canceling?
It should work with event cancelling, but I'm not sure why you ask while knowing the answer. The procedure is quite simple:
*player right clicks block* trigger
Oh, I tried it with when item used...
thanks