Everything posted by vemerion
-
How to update a player's max health?
If you call setHealth() after you changed the attribute it should update immediately, something like this: player.setHealth(Math.min(player.getMaxHealth(), player.getHealth()));
-
Edit vanilla mobs drops
You can use the Random object from LootContext.getRandom() to determine how many items should be added to the loot.
-
How to update a player's max health?
The code works when I try it. From where are you calling it?
-
How to get a % of ranged weapon charge?
You can get the current power of a bow with: BowItem.getPowerForTime(player.getUseItem().getUseDuration() - player.getUseItemRemainingTicks())
-
Edit vanilla mobs drops
You can do it with global loot modifiers. You can learn about them on the Forge docs here
-
[1.20.4] Custome glass cannot see the rain throught mi custome glass pane
It is the same with vanilla stained glass, you can't see the rain through it. If you want to be able to see the rain you have to specify render_type "cutout", but then you can't make any of the pixels semi-transparent (like stained glass), they have to be either fully transparent or fully solid (like regular glass).
- LivingAttackEvent dont effect Witches .. help pls
-
[1.20.1] Change Item color based on NBT.
You can use the RegisterColorHandlersEvent.Item event to register a color handler for the item that changes the color based on NBT and layer.
- Rotate Player Model
- LivingAttackEvent dont effect Witches .. help pls
- Crash on Server
- Crash on Server
-
How can I modify an existing mob/entity
TS has not been online on the forum for a couple of years, so probably you won't get an answer. Better to start your own thread and explain your problem so others can help you
- Crash on Server
- Crash on Server
- Crash on Server
-
Help with Telekinesis
It is hard to know what is wrong just by looking at these code snippets. Do you have a link to your full repository?
-
[1.19.2] Painting Variants limit
What happens when you try to place the painting? It just does not appear? Does it say anything in the log when you try to place it?
-
Recipes not working
No problem! Glad I could help
-
Recipes not working
Change" "item:": to "item":
-
Recipes not working
You need to remove the quotes from the nine so it just becomes: "count": 9 and you need to remove the colon inside the string so it just becomes: "item": "beyond:soul_shard" I recommend using data generators to avoid having to manually create the json recipes and avoid these problems in the future.
- [SOLVED]Unable to summon entity in Minecraft
-
Recipes not working
I would do a search for the recipe file names in the debug log file to see if something went wrong.
- Custom farmland block taking vanilla CropBlock
-
Recipes not working
Could be that you might need to refresh the files in your IDE for them to be found by the game. Otherwise I would recommend checking the log to see if it says anything about the recipes not working.
IPS spam blocked by CleanTalk.