From f8f30b73113477e8f8256927226cb204df654e8f Mon Sep 17 00:00:00 2001 From: the-real-herowl Date: Sat, 28 Dec 2024 23:24:40 +0100 Subject: [PATCH] Firework rockets are no longer infinite in survival --- mods/ITEMS/vl_fireworks/rockets.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ITEMS/vl_fireworks/rockets.lua b/mods/ITEMS/vl_fireworks/rockets.lua index a02788512..f0e6c897d 100644 --- a/mods/ITEMS/vl_fireworks/rockets.lua +++ b/mods/ITEMS/vl_fireworks/rockets.lua @@ -176,6 +176,10 @@ local firework_def = { on_place = function(itemstack, user, pointed_thing) local pos = pointed_thing.above vl_fireworks.shoot_firework(itemstack, pos) + if mcl_gamemode.get_gamemode(user) ~= "creative" then + itemstack:take_item() + return itemstack + end end, _on_dispense = function(dropitem, pos, droppos, dropnode, dropdir) vl_fireworks.shoot_firework(dropitem, pos, dropdir)