Started by
0NullVoid0
on
Topic category: Help with Minecraft modding (Java Edition)
So I’m gonna make a mod (I have a few good ideas in fact) but I’m not smart enough to know how to check what dragon the player is, or whether they’re flying and how to toggle that, as well as optionally how to make an item considered a food without having to go in the config for every world. I’ll like the GitHub repository here:
https://github.com/DragonSurvivalTeam/DragonSurvival
All help is appreciated, thx (I’m using forge 1.20.1, also)
I found something that might help, could the getTypeName tag here: https://github.com/DragonSurvivalTeam/DragonSurvival/tree/1.20.1/src/main/java/by/dragonsurvivalteam/dragonsurvival/common/dragon_types/types
Possibly help?
The closest I've gotten is using /data get @s ForgeCaps{"dragonsurvival:playerstatehandler":{type:"cave"}} but i dont know how to translate whether it outputs and error or an answer to use in my code.