Started by
bananarang_mods
on
Topic category: Help with Minecraft modding (Java Edition)
I'm testing something in my mod where if the player goes near a sunflower at day they get positive status effects, but I don't know how to do this- anyone know how? (I might need a screenshot of the working procedure)
You'd wanna check for Sunflower blocks in the vicinity of the player by constantly checking all blocks around player in a certain radius. What vicinity were you thinking about? if it's more than a few blocks this is not a good idea because of the lag it would create
There is a procedure template to check for a block in a 6x6x6 radious
also it is not that laggy even for a nine block radious
*diameter
You could also use the "on plant update tick" procedure on the sunflower and use the "does entity exist in X radius" procedure block and set the entity to player, then use the apply potion effect procedure block and set it to your custom potion effect, this could be less laggy than the other one.