Started by
xerox929
on
Topic category: Help with MCreator software
Hey! I'm pretty new to this, so I don't know much lol, but I was working on a mod that adds a whole expansion to the deep dark, with one of those being an enchanment called 'Sculk Speed'. I was wondering is there was a way to detect if a player is on any kind of specified block? Thanks!
(also if yall could help with one more thing, I have a custom 3d modeled sword but the item texture doesn't show up in the inventory?)
Edited by xerox929 on Sat, 04/01/2023 - 20:55
Here is how I would do that using code blocks:
Place that inside an "on tick update" of some sort, depending on if it's a held item or active potion effect, equipment, constant permanent effect, or enchantment.
The AND and the "current world time MOD 60" is a bit advanced, and sort of optional, but without that it will apply every tick (20 times per second) which is going to put a strain on the games performance. If you just want it to work and don't care about lag you can just use the yellow blockstate code block in the 'If'.