Posted November 3, 20222 yr How would I be able to tell if a player has changed an item in their hand?
November 3, 20222 yr https://forums.minecraftforge.net/topic/117960-1192-trying-to-give-player-creative-flight-in-survival-mode Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
November 3, 20222 yr Author 3 hours ago, warjort said: https://forums.minecraftforge.net/topic/117960-1192-trying-to-give-player-creative-flight-in-survival-mode thx EDIT: Oops, this doesn't seem to suit me. Edited November 3, 20222 yr by Luckydel
November 3, 20222 yr Author 3 hours ago, warjort said: https://forums.minecraftforge.net/topic/117960-1192-trying-to-give-player-creative-flight-in-survival-mode After I use an item, the game thinks that I changed the item (Maybe because it loses durability), any ideas how to get around this?
November 3, 20222 yr The event is fired when ItemStack.matches(from, to) == false so yes, durability changes mean the event is fired. You can do your own additional filtering in the event e.g. using ItemStack.isSameIgnoreDurability(from, to) or one of the other equality tests in the ItemStack class. Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
November 3, 20222 yr Author 10 minutes ago, warjort said: The event is fired when ItemStack.matches(from, to) == false so yes, durability changes mean the event is fired. You can do your own additional filtering in the event e.g. using ItemStack.isSameIgnoreDurability(from, to) or one of the other equality tests in the ItemStack class. Thanks It works
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.