From 54de60b27e4e8dc390c28d2e8ccdd6a6aa4325fc Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Sat, 25 Dec 2021 21:11:01 +0000 Subject: [PATCH 1/4] Iron Golems no longer drop experience orbs In Minecraft, (Iron) Golems do not drop any xp! (checked in the Minecarft Wiki and confirmed in my copy of Minecraft (1.18.1)) Now they drop at least 0 and at most 0 experience orbs, so you won't get any https://minecraft.fandom.com/wiki/Iron_Golem --- mods/ENTITIES/mobs_mc/iron_golem.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/ENTITIES/mobs_mc/iron_golem.lua b/mods/ENTITIES/mobs_mc/iron_golem.lua index 939412abb..d7b2f3613 100644 --- a/mods/ENTITIES/mobs_mc/iron_golem.lua +++ b/mods/ENTITIES/mobs_mc/iron_golem.lua @@ -19,6 +19,8 @@ mobs:register_mob("mobs_mc:iron_golem", { rotate = 270, hp_min = 100, hp_max = 100, + xp_min = 0, + xp_max = 0, protect = true, neutral = true, breath_max = -1, From d40ea5855bda5eb42c8b240d03e5146e4489f1b0 Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Sat, 25 Dec 2021 21:14:20 +0000 Subject: [PATCH 2/4] Snow Golems no longer drop experience orbs In Minecraft, (Snow) Golems do not drop any xp! (checked in the Minecarft Wiki and confirmed in my copy of Minecraft (1.18.1)) Now they drop at least 0 and at most 0 experience orbs, so you won't get any https://minecraft.fandom.com/wiki/Snow_Golem --- mods/ENTITIES/mobs_mc/snowman.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/ENTITIES/mobs_mc/snowman.lua b/mods/ENTITIES/mobs_mc/snowman.lua index 0726b8da0..e2e17e30e 100644 --- a/mods/ENTITIES/mobs_mc/snowman.lua +++ b/mods/ENTITIES/mobs_mc/snowman.lua @@ -27,6 +27,8 @@ mobs:register_mob("mobs_mc:snowman", { passive = true, hp_min = 4, hp_max = 4, + xp_min = 0, + xp_max = 0, pathfinding = 1, view_range = 10, fall_damage = 0, From 2dbd01b8a0a3da429376bd88bc98fd012655549d Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Sun, 26 Dec 2021 09:47:30 +0000 Subject: [PATCH 3/4] loaded crossbows are no lomger in creative inventory In Minecraft, loaded crossbows are NOT in the creative inventory! https://minecraft.fandom.com/wiki/Crossbow --- mods/ITEMS/mcl_bows/crossbow.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_bows/crossbow.lua b/mods/ITEMS/mcl_bows/crossbow.lua index 5ae21a1f3..3c92a4c92 100644 --- a/mods/ITEMS/mcl_bows/crossbow.lua +++ b/mods/ITEMS/mcl_bows/crossbow.lua @@ -181,7 +181,7 @@ S("The speed and damage of the arrow increases the longer you charge. The regula itemstack:get_meta():set_string("active", "true") return itemstack end, - groups = {weapon=1,weapon_ranged=1,crossbow=1,enchantability=1}, + groups = {not_in_creative_inventory=1,weapon=1,weapon_ranged=1,crossbow=1,enchantability=1}, _mcl_uses = 326, }) From 263bb1607da7df237bbc7b8199a3f73b4179c53c Mon Sep 17 00:00:00 2001 From: NO11 Date: Thu, 30 Dec 2021 13:12:19 +0000 Subject: [PATCH 4/4] Remove arrow entities when the player leaves to prevent killing on startup --- mods/ITEMS/mcl_bows/arrow.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ITEMS/mcl_bows/arrow.lua b/mods/ITEMS/mcl_bows/arrow.lua index 343707617..e8efa6662 100644 --- a/mods/ITEMS/mcl_bows/arrow.lua +++ b/mods/ITEMS/mcl_bows/arrow.lua @@ -419,6 +419,10 @@ function ARROW_ENTITY.on_step(self, dtime) self.object:set_rotation({ x = 0, y = yaw, z = pitch }) end + if self._in_player and not self.object:get_attach() then + self.object:remove() + end + -- Update internal variable self._lastpos={x=pos.x, y=pos.y, z=pos.z} end