mojira.dev

Curtis Phillips

Assigned

No issues.

Reported

MC-278977 Minecarts do not update their rotation when moving very slowly Won't Fix MC-273411 "block_experience" enchantment effect doesn't affect XP dropped Community Consensus MC-272850 generic.luck Attribute doesn't work Awaiting Response MC-272840 Items that change into other Items do not keep Enchantments Duplicate MC-270087 Cannot Shift Click Recipes to Craft Duplicate MC-264217 "entity_killed_player" trigger doesn't work with Goats Duplicate MC-264099 placed_block trigger doesn't work for blocks that change instantly Duplicate MC-259919 Display Entities have Glow Override but Glowing Effect Cannot be Applied Invalid MC-252383 Mobs not instantly despawning outside of 128 block radius Awaiting Response MC-227746 Item Modifier "set_count" with "add:true" only adds 1 to the count when using with /item replace Cannot Reproduce MC-226548 Invulnerable Items turn invisible when "killed" by Cactus Duplicate MC-208715 Comparator stays powered when powered by a block powered by a broken Sculk Sensor Duplicate MC-208708 Axolotls stay out of the water until they die Duplicate MC-207505 Sculk Sensor: Attach/Detach Block doesn't activate if player is walking Awaiting Response MC-207393 Sculk sensor can detect "GameEvent.STEP" before "GameEvent.HIT_GROUND" causing an inconsistent redstone signal output of either 1 or 5 depending on the circumstance Fixed MC-206786 Jumping on Waterlogged Dripstone Does Damage if Player is Also Touching Land Duplicate MCPE-89828 Zombified Piglins Hostility not Spreading Duplicate

Comments

Sorry trying my best to explain it.

In vanilla, Diamond Ore should yield about 3-7 XP when mined without Silk Touch.

The effect component `minecraft:block_experience` is supposed to change the value for the "Amount of experience awarded for breaking a block"

The bug is that `minecraft:block_experience` doesn't actually affect the XP dropped.

 

In the provided datapack example I have an enchantment "Learned", that is supposed to increase the XP awarded for killing mobs and for breaking blocks. It is supposed to increase the XP dropped by 10 per level, up to level 3. This works fine for `minecraft:mob_experience`; however, for `minecraft:block_experience` there is no change in how much XP is dropped when breaking the block.

Steps to reproduce:

  • Add datapack to world

  • Enchant helmet with Learned enchantment level 3, expected output would be +30 XP per mob killed and per block broken (If it drops XP)

  • Kill mob without wearing the helmet to see base XP gained

  • Clear XP/Levels

  • Equip Enchanted Helmet

  • Kill mob to see how much XP is gained through the enchantment

  • Clear XP/Levels

  • Break diamond ore without wearing the helmet using a non-silk touch pickaxe to see base XP gained

  • Clear XP/Levels

  • Equip Enchanted Helmet

  • Break diamond ore using a non-silk touch pickaxe to see base XP gained through the enchantment

  • Note, no increase to how much XP the diamond ore drops on being broken

Furthermore, copying the exact code for the vanilla Silk Touch enchantment (Which sets the value of XP dropped to 0) and using that also does not affect the XP dropped from blocks.

So the code for XP drops is somewhere else for Silk Touch, and is not reliant on the effect component `minecraft:block_experience`

Attached the reproduction datapack.

 

Expected result is `mob_experience` and `block_experience` yielding more XP than the default that is dropped.

`mob_experience` works and XP dropped increases from mobs increases,

`block_experience` does not affect the XP dropped by blocks at all. Even copying the vanilla Silk Touch json, where `block_experience` is present and sets the value to 0, does not affect the XP dropped from blocks.

This is still happening as of 1.20.1 and I did not notice it until 1.20.1 when my server started crashing more and more frequently.

I wonder if the chunk data that is being stored is bigger now and the problem arises more? I have set up various JVM arguments to counter it to no avail and even with 10 GB of memory my server crashes within an hour of 3 players exploring on foot/boat.

Confirmed for 1.20.1, this is also the case for Water in the Nether and TNT placed next to a power source

This is unfortunately still present in the released version of 1.19.4

Can the override be used for other colors or just from black to blue (0 - 255)?

I found this yesterday myself too and realized while messing with the effect that shadows are applied kind of like a sphere and not just a simple circle. So what I think is happening is it is checking every block within the shadow radius to determine if a shadow should be cast on it and how dark it should make it. If you do it on a hill, you'll notice that it gets darker/lighter in differing heights and distances around the center.

I can understand passive mobs not despawning, but what about Neutral. For Zombified Piglin farms I recall them despawning outside of the radius under normal conditions.

And on a similar note should mobs be SPAWNING outside of the range? Because I can do the /kill command on them and a few moments later the mobs have spawned again way outside of this range.

By "full sets" do you mean "full stacks"?

And by "created a village" do you mean you spawned them in with spawn eggs or bred them using crops? And if it was crops did you use potatoes. And if you used potatoes did you give them a LOT of potatoes?

Confirmed on my own end while testing. Though on the snapshot page and the official wiki it says if the player kills a mob that was attacking the axolotl or the mob the axolotl attacked you'd get both regeneration and the removal of mining fatigue. Even killing the mob didn't work.