I can't understand why this procedure for changing the texture doesn't work

Started by DEPSEL0N on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't understand why this procedure for changing the texture doesn't work
Tue, 10/29/2024 - 06:31 (edited)

In this procedure, highlighted in red, it does not work (the texture of the mob is not replaced according to the block on which it spawns), and the default texture is used. How can this be fixed? Literally, the procedure works like this: when the mob spawns, it must check which block it spawns on and if it spawns on earth blocks or mud blocks, it replaces its texture. But the problem is that the texture is not replaced with ground blocks. And how to replace the earth blocks with a group of earth blocks so that the lands from other mods can work

Edited by DEPSEL0N on Tue, 10/29/2024 - 06:31
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You should probably set the…
Sun, 11/03/2024 - 00:08

You should probably set the nbts to false when they are so. Eg when the texture is changed to mud make the nbt dirt to false. Thats why its restarting. From what I can see of your procedure, if thats on tick update, its going to constantly play the animations. I guess your using that bottom if block to stop that from happening but its just uneccesary if you set the nbts to false as the next ones become true.

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I dont know what your…
Sun, 11/03/2024 - 00:10

I dont know what your talking about the rain block? Your using a block which gets if entity is in water/rain/bubble column?

You could get if it is raining in the world, because if it is then its raining/snowing everywhere other than hot biomes. However the one your using is the only one which determines whether its being rained on.

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, everything is working…
Sun, 11/03/2024 - 12:47

Yes, everything is working now. Thank you very much!

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What needs to be done in…
Mon, 11/04/2024 - 05:35

What needs to be done in order for entities to synchronize data, to synchronize between the server and the client? Which block should be changed?