Hunter
- dimburov
- dimburov
- Europe/Stockholm
- Yes
- No
Windows 10
ENG: When i give to me helmet with atribute +10 max hp, i have 30 hp max, But after death my coomand block has deleted this helmet. when i was reborn, i have 30 hp max.
RU: Когда я выдал себе предмет, который увеличивал мой запас хп при помощи атрибута у меня было 30 хп макс. Когда я умер, командный блок удалил этот предмет, но у меня осталось 30 хп максимально.
Windows 10
Put the summary of the bug you're having here
What I expected to happen was...:
Describe what you thought should happen hereWhat actually happened was...:
Describe what happened hereSteps to Reproduce:
1. Put a step by step guide on how to trigger the bug here
2. ...
3. ...ENG: When i give to me helmet with atribute +10 max hp, i have 30 hp max, But after death my coomand block has deleted this helmet. when i was reborn, i have 30 hp max.
RU: Когда я выдал себе предмет, который увеличивал мой запас хп при помощи атрибута у меня было 30 хп макс. Когда я умер, командный блок удалил этот предмет, но у меня осталось 30 хп максимально.
After death, when player respawn. Minecraft run function placeNewPlayer. In this function call other function: this.sendPlayerPermissionLevel(serverPlayer); In this functino calls this.server.getCommands().sendCommands(serverPlayer);
When call sendCommands, all commands collect for player - place all command to packet if permission exists.
Example singleplayer world without cheat.
gamerule command require cheat - ignore.
trigger command not require cheat. Collect arguments (list of arguments u can see at wiki)
Than all collected command parse in constructor of class ClientboundCommandsPacket.
And last - send to client.What problem? If add some new modded command. Run game. Set gamerule doImmediateRespawn true. Run kill command. Watch video. Before run command /say second part.
How to fix?
Solution first. Its increase speed of loading singleplayer world, because packet with commands tree can configured more than 1-2 second. Player can play without command while it configured. And its increase speed of joining to server - same reason - client havent command, because server in configure command tree packet and sent when end.
{ <body> }
Run function in new thread Commands#sendCommand
public void sendCommands(ServerPlayer serverPlayer)to
{<body>}
Executors.newSingleThreadExecutor().execute(() ->);
Solution second.
Cache command tree or not send when respawn. Commands tree don't change after death and client already have its. Than, send same command tree - spent resource of server side and internet (not lan player), because tree on client is same, that sent in packet.After death, when player respawn. Minecraft run function placeNewPlayer. In this function call other function: this.sendPlayerPermissionLevel(serverPlayer); In this functino calls this.server.getCommands().sendCommands(serverPlayer);
When call sendCommands, all commands collect for player - place all command to packet if permission exists.
Example singleplayer world without cheat.
gamerule command require cheat - ignore.
trigger command not require cheat. Collect arguments (list of arguments u can see at wiki)
Than all collected command parse in constructor of class ClientboundCommandsPacket.
And last - send to client.What problem? If add some new modded command. Run game. Set gamerule doImmediateRespawn true. Run kill command. Watch video before run command /say second part - item loaded after wait 1-2 second. If add some more command i can walk and server not track any my movement, only result. If i place command block, that kill all player in distance 1..2 around spawn - dont kill on spawn position and far spawn position, i can walk and not death - server think that i stay, than teleport to position.
How to fix?
Solution first. Its increase speed of loading singleplayer world, because packet with commands tree can configured more than 1-2 second. Player can play without command while it configured. And its increase speed of joining to server - same reason - client havent command, because server in configure command tree packet and sent when end.
{ <body> }
Run function in new thread Commands#sendCommand
public void sendCommands(ServerPlayer serverPlayer)to
{<body>}
Executors.newSingleThreadExecutor().execute(() ->);
Watch video after run command /say second partSolution second.
Cache command tree or not send when respawn. Commands tree don't change after death and client already have its. Than, send same command tree - spent resource of server side and internet (not lan player), because tree on client is same, that sent in packet.





after previous commands next commad
/data get entity @s SelectedItem.tag.Damage
the result should be 10, but it's not change
i do this, console dont say anything
How to fix
look at attribute command
attribute @s generic.max_health modifier add 22e67162-454c-4125-9ff5-cb71365a41a8 "mat.damage" -15 add
effect give @s instant_health
will not do fake death.
If my max health is below 20 when i take damage higher than my health it will create "fake death"
For example
5 max hp.
20 hp (hp not reduced to max, because i don't get any heal or damage)
effect give @s intant_healt - take 15 damage to reduce my health to maximum.
How to fix - always reduce health to maximum
bug -
if hp>maxHp
then "damage on client side"="real damage"+hp-maxHp
else "damage on client side"="real damage"
fix -
if hp>maxHp then hp=maxHp
frendlyFire is enabled. Zombie can deal damage to player, but won't.
If spawn zombie and iron golem in same team, he will start fight and stop when friendlyFire disabled.
Enemy ignore player in same team regardless of the team rules.
Nothing, but while i creating mod, i check item nbt and ignore count of item and id of item. Than got error - after drop item check empty slot, see nbt, run some functions. And it will optimize minecraft.
Than more command or command node (argument) add mojang - than more lag spike after every respawn. Than more mod installed, than more this lag will be seeing by player
Its bug work for all java edition of Minecraft -vanilla, forge, fabric. But at this time, it can be found after add several command. In next versions it will affect more - more command. More lag