Started by
Help_Me_Please
on
Topic category: Help with MCreator software
I'm trying to do something really simple. If the player is in creative then when they use a one use item I made then it won't delete it from the inventory. In survival it is a one use item and will get deleted. No block code seems to have get or detect gamemode, so how would I do this?
You could access EntityPlayer#capabilities , and there get the field "isCreativeMode" , or I believe that there are now even in the EntityPlayer class methods isCreative() and isSpectator().
There is a block in the player section that checks gamemode (if I remember well)
There is a block that sets the player's gamemode, but none to set it.
I don't see an entity player tab in the left side of procedures. How would I do this with block code please?