#2 small qustions
10 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
- onForgeEvent is
ForgeEvents.onEvent()in 1.19+
2. you need to useevent.player.mainHandItem = "minecraft:air"i believe
then what do i use instead to detect if the player is holding nothing?
event.player.mainHandItem.id == "minecraft:air"
ohhhh xd maked sense
ForgeEvents.onEvent('net.minecraftforge.event.level.BlockEvent$PortalSpawnEvent', event => {
if (!event.player.stages.has('nether_portal'))
{
event.cancel()
}
})
so then this?