Dragon survival stuff

Started by 0NullVoid0 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Dragon survival stuff
Sat, 06/14/2025 - 15:36 (edited)

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 link the GitHub repository here:

https://github.com/DragonSurvivalTeam/DragonSurvival

All help is appreciated, thx (I’m using forge 1.20.1, also)

Edited by 0NullVoid0 on Sat, 06/14/2025 - 15:36
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The closest I've gotten is…
Thu, 06/05/2025 - 21:40

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.

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you are using MCreator…
Sat, 06/07/2025 - 04:50

If you are using MCreator then I have answers: 

How to check dragon types? Well, you can always use a variable number or text and check if [Variable] = [Target].

To make an item considered a food you can head to the food properties. You don't need custom code at all if you just add elements and procedures.

Again I am not experienced and I don't know what you are using to do this but I hope this helps.

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The variables are external,…
Sun, 06/08/2025 - 22:08

The variables are external, like, from a different mod and hard to access, and to make a food specifically for dragons, you need custom stuff. but thanks for trying to help.