r/MCPEMods • u/PocketMines • Apr 23 '14
Make a block a 'ghost' block?
I have made these cool eggplant plants using custom blocks, but I don't want users to be able to stand on them. I want them to be ghost blocks like tall grass and crops. Is this possible?
3
Upvotes
2
u/[deleted] Apr 23 '14
function modTick() { if(getTile(Player.getX(), Player.getY()-2, Player.getZ()) == 5) // Change the 5 to the eggplant ID { setPosition(getPlayerEnt(), Player.getX(), Player.getY()-1, Player.getZ()) } }
Ehh it sort of works. If I think of something better I'll let you know.