Started by
swelkinn_n
on
Topic category: Help with Minecraft modding (Java Edition)
Currently in my mod (Spirit of Enium/Genuinely Too Many Additions) there's an item that allows the player to fly
But the problem is, it disables creative flight as well as having the flight be inconsistently functional
Is there a way to fix this? If so how?
I'm unaware of how to add images to forum posts like this but the blocks go as follows:
On player tick:
if: has [entity target] in inventory [(item)]
do: allow [entity target] flight to fly if [True] otherwise don't
else if: [not] has [entity target] in inventory [(item)]
do: allow [entity target] to fly if [False] otherwise don't
In MCreator version 2020.5+ and MC version 1.15.2 use this:
On player tick update:
if [is Event/Target in game mode survival]AND[has Event/Target in inventory _insert item here_]
do all Event/Target to fly if true otherwise don't
else if [is Event/Target in game mode survival]AND[not has Event/Target in inventory _insert item here_]
do all Event/Target to fly if false otherwise don't
Alright, thank you!