From 93a6ce6824dae89e438226dffb4cfc77e941fdeb Mon Sep 17 00:00:00 2001 From: the-real-herowl Date: Tue, 24 Dec 2024 22:53:31 +0100 Subject: [PATCH] Renamed mcl_fireworks to vl_fireworks --- mods/ITEMS/mcl_bows/rocket.lua | 4 ++-- .../{mcl_fireworks => vl_fireworks}/README.txt | 0 .../crafting.lua | 8 ++++---- .../{mcl_fireworks => vl_fireworks}/init.lua | 6 +++--- .../locale/template.txt | 0 .../locale/vl_fireworks.de.tr} | 0 .../locale/vl_fireworks.es.tr} | 0 .../locale/vl_fireworks.fr.tr} | 0 .../locale/vl_fireworks.ja.tr} | 0 .../locale/vl_fireworks.nb.tr} | 0 .../locale/vl_fireworks.pl.tr} | 0 .../locale/vl_fireworks.pt_BR.tr} | 0 .../locale/vl_fireworks.ru.tr} | 0 .../locale/vl_fireworks.zh_CN.tr} | 0 .../{mcl_fireworks => vl_fireworks}/mod.conf | 2 +- .../models/vl_fireworks_rocket.obj} | 0 .../register.lua | 16 ++++++++-------- .../sounds/vl_fireworks_rocket.ogg} | Bin ...works_entity.png => vl_fireworks_entity.png} | Bin ...works_rocket.png => vl_fireworks_rocket.png} | Bin 20 files changed, 18 insertions(+), 18 deletions(-) rename mods/ITEMS/{mcl_fireworks => vl_fireworks}/README.txt (100%) rename mods/ITEMS/{mcl_fireworks => vl_fireworks}/crafting.lua (77%) rename mods/ITEMS/{mcl_fireworks => vl_fireworks}/init.lua (97%) rename mods/ITEMS/{mcl_fireworks => vl_fireworks}/locale/template.txt (100%) rename mods/ITEMS/{mcl_fireworks/locale/mcl_fireworks.de.tr => vl_fireworks/locale/vl_fireworks.de.tr} (100%) rename mods/ITEMS/{mcl_fireworks/locale/mcl_fireworks.es.tr => vl_fireworks/locale/vl_fireworks.es.tr} (100%) rename mods/ITEMS/{mcl_fireworks/locale/mcl_fireworks.fr.tr => vl_fireworks/locale/vl_fireworks.fr.tr} (100%) rename mods/ITEMS/{mcl_fireworks/locale/mcl_fireworks.ja.tr => vl_fireworks/locale/vl_fireworks.ja.tr} (100%) rename mods/ITEMS/{mcl_fireworks/locale/mcl_fireworks.nb.tr => vl_fireworks/locale/vl_fireworks.nb.tr} (100%) rename mods/ITEMS/{mcl_fireworks/locale/mcl_fireworks.pl.tr => vl_fireworks/locale/vl_fireworks.pl.tr} (100%) rename mods/ITEMS/{mcl_fireworks/locale/mcl_fireworks.pt_BR.tr => vl_fireworks/locale/vl_fireworks.pt_BR.tr} (100%) rename mods/ITEMS/{mcl_fireworks/locale/mcl_fireworks.ru.tr => vl_fireworks/locale/vl_fireworks.ru.tr} (100%) rename mods/ITEMS/{mcl_fireworks/locale/mcl_fireworks.zh_CN.tr => vl_fireworks/locale/vl_fireworks.zh_CN.tr} (100%) rename mods/ITEMS/{mcl_fireworks => vl_fireworks}/mod.conf (81%) rename mods/ITEMS/{mcl_fireworks/models/mcl_fireworks_rocket.obj => vl_fireworks/models/vl_fireworks_rocket.obj} (100%) rename mods/ITEMS/{mcl_fireworks => vl_fireworks}/register.lua (87%) rename mods/ITEMS/{mcl_fireworks/sounds/mcl_fireworks_rocket.ogg => vl_fireworks/sounds/vl_fireworks_rocket.ogg} (100%) rename textures/{mcl_fireworks_entity.png => vl_fireworks_entity.png} (100%) rename textures/{mcl_fireworks_rocket.png => vl_fireworks_rocket.png} (100%) diff --git a/mods/ITEMS/mcl_bows/rocket.lua b/mods/ITEMS/mcl_bows/rocket.lua index af8ca1f45..5cc593639 100644 --- a/mods/ITEMS/mcl_bows/rocket.lua +++ b/mods/ITEMS/mcl_bows/rocket.lua @@ -8,7 +8,7 @@ local ROCKET_TIMEOUT = 1 local YAW_OFFSET = -math.pi/2 -local particle_explosion = mcl_fireworks.particle_explosion +local particle_explosion = vl_fireworks.particle_explosion local function damage_explosion(self, damagemulitplier, pos) if self._harmless then return end @@ -97,7 +97,7 @@ if core.get_modpath("mcl_core") and core.get_modpath("mcl_mobitems") then output = "mcl_bows:rocket 1", recipe = { {"mcl_core:paper"}, - {"mcl_fireworks:rocket_2"}, + {"vl_fireworks:rocket_2"}, {"mcl_bows:arrow"}, } }) diff --git a/mods/ITEMS/mcl_fireworks/README.txt b/mods/ITEMS/vl_fireworks/README.txt similarity index 100% rename from mods/ITEMS/mcl_fireworks/README.txt rename to mods/ITEMS/vl_fireworks/README.txt diff --git a/mods/ITEMS/mcl_fireworks/crafting.lua b/mods/ITEMS/vl_fireworks/crafting.lua similarity index 77% rename from mods/ITEMS/mcl_fireworks/crafting.lua rename to mods/ITEMS/vl_fireworks/crafting.lua index a9e156aa6..1161cc8c2 100644 --- a/mods/ITEMS/mcl_fireworks/crafting.lua +++ b/mods/ITEMS/vl_fireworks/crafting.lua @@ -1,17 +1,17 @@ minetest.register_craft({ type = "shapeless", - output = "mcl_fireworks:rocket_1 3", + output = "vl_fireworks:rocket_1 3", recipe = {"mcl_core:paper", "mcl_mobitems:gunpowder"}, }) minetest.register_craft({ type = "shapeless", - output = "mcl_fireworks:rocket_2 3", + output = "vl_fireworks:rocket_2 3", recipe = {"mcl_core:paper", "mcl_mobitems:gunpowder", "mcl_mobitems:gunpowder"}, }) minetest.register_craft({ type = "shapeless", - output = "mcl_fireworks:rocket_3 3", + output = "vl_fireworks:rocket_3 3", recipe = {"mcl_core:paper", "mcl_mobitems:gunpowder", "mcl_mobitems:gunpowder", "mcl_mobitems:gunpowder"}, -}) \ No newline at end of file +}) diff --git a/mods/ITEMS/mcl_fireworks/init.lua b/mods/ITEMS/vl_fireworks/init.lua similarity index 97% rename from mods/ITEMS/mcl_fireworks/init.lua rename to mods/ITEMS/vl_fireworks/init.lua index 45d787677..612a63419 100644 --- a/mods/ITEMS/mcl_fireworks/init.lua +++ b/mods/ITEMS/vl_fireworks/init.lua @@ -1,8 +1,8 @@ -local path = minetest.get_modpath("mcl_fireworks") +local path = minetest.get_modpath("vl_fireworks") -mcl_fireworks = {} +vl_fireworks = {} -function mcl_fireworks.particle_explosion(pos) +function vl_fireworks.generic_particle_explosion(pos) if pos.object then pos = pos.object:get_pos() end local particle_pattern = math.random(1, 3) local fpitch diff --git a/mods/ITEMS/mcl_fireworks/locale/template.txt b/mods/ITEMS/vl_fireworks/locale/template.txt similarity index 100% rename from mods/ITEMS/mcl_fireworks/locale/template.txt rename to mods/ITEMS/vl_fireworks/locale/template.txt diff --git a/mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.de.tr b/mods/ITEMS/vl_fireworks/locale/vl_fireworks.de.tr similarity index 100% rename from mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.de.tr rename to mods/ITEMS/vl_fireworks/locale/vl_fireworks.de.tr diff --git a/mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.es.tr b/mods/ITEMS/vl_fireworks/locale/vl_fireworks.es.tr similarity index 100% rename from mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.es.tr rename to mods/ITEMS/vl_fireworks/locale/vl_fireworks.es.tr diff --git a/mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.fr.tr b/mods/ITEMS/vl_fireworks/locale/vl_fireworks.fr.tr similarity index 100% rename from mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.fr.tr rename to mods/ITEMS/vl_fireworks/locale/vl_fireworks.fr.tr diff --git a/mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.ja.tr b/mods/ITEMS/vl_fireworks/locale/vl_fireworks.ja.tr similarity index 100% rename from mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.ja.tr rename to mods/ITEMS/vl_fireworks/locale/vl_fireworks.ja.tr diff --git a/mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.nb.tr b/mods/ITEMS/vl_fireworks/locale/vl_fireworks.nb.tr similarity index 100% rename from mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.nb.tr rename to mods/ITEMS/vl_fireworks/locale/vl_fireworks.nb.tr diff --git a/mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.pl.tr b/mods/ITEMS/vl_fireworks/locale/vl_fireworks.pl.tr similarity index 100% rename from mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.pl.tr rename to mods/ITEMS/vl_fireworks/locale/vl_fireworks.pl.tr diff --git a/mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.pt_BR.tr b/mods/ITEMS/vl_fireworks/locale/vl_fireworks.pt_BR.tr similarity index 100% rename from mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.pt_BR.tr rename to mods/ITEMS/vl_fireworks/locale/vl_fireworks.pt_BR.tr diff --git a/mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.ru.tr b/mods/ITEMS/vl_fireworks/locale/vl_fireworks.ru.tr similarity index 100% rename from mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.ru.tr rename to mods/ITEMS/vl_fireworks/locale/vl_fireworks.ru.tr diff --git a/mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.zh_CN.tr b/mods/ITEMS/vl_fireworks/locale/vl_fireworks.zh_CN.tr similarity index 100% rename from mods/ITEMS/mcl_fireworks/locale/mcl_fireworks.zh_CN.tr rename to mods/ITEMS/vl_fireworks/locale/vl_fireworks.zh_CN.tr diff --git a/mods/ITEMS/mcl_fireworks/mod.conf b/mods/ITEMS/vl_fireworks/mod.conf similarity index 81% rename from mods/ITEMS/mcl_fireworks/mod.conf rename to mods/ITEMS/vl_fireworks/mod.conf index 6c0971176..efb925363 100644 --- a/mods/ITEMS/mcl_fireworks/mod.conf +++ b/mods/ITEMS/vl_fireworks/mod.conf @@ -1,3 +1,3 @@ -name = mcl_fireworks +name = vl_fireworks description = Adds fun fireworks to the game which players can use. depends = vl_projectile diff --git a/mods/ITEMS/mcl_fireworks/models/mcl_fireworks_rocket.obj b/mods/ITEMS/vl_fireworks/models/vl_fireworks_rocket.obj similarity index 100% rename from mods/ITEMS/mcl_fireworks/models/mcl_fireworks_rocket.obj rename to mods/ITEMS/vl_fireworks/models/vl_fireworks_rocket.obj diff --git a/mods/ITEMS/mcl_fireworks/register.lua b/mods/ITEMS/vl_fireworks/register.lua similarity index 87% rename from mods/ITEMS/mcl_fireworks/register.lua rename to mods/ITEMS/vl_fireworks/register.lua index 5bb8808b2..e02647e1e 100644 --- a/mods/ITEMS/mcl_fireworks/register.lua +++ b/mods/ITEMS/vl_fireworks/register.lua @@ -5,7 +5,7 @@ local description = S("Firework Rocket") local function explode(self, pos) -- temp code - mcl_fireworks.particle_explosion(pos) + vl_fireworks.generic_particle_explosion(pos) mcl_mobs.mob_class.boom(self, pos, 1) end @@ -14,8 +14,8 @@ local firework_entity = { pointable = false, visual = "mesh", visual_size = {x=3, y=3}, - mesh = "mcl_fireworks_rocket.obj", - textures = {"mcl_fireworks_entity.png"}, + mesh = "vl_fireworks_rocket.obj", + textures = {"vl_fireworks_entity.png"}, backface_culling = false, collisionbox = {-0.1, 0, -0.1, 0.1, 0.5, 0.1}, collide_with_objects = false, @@ -107,11 +107,11 @@ local firework_entity = { local function register_rocket(n, duration, force) def = table.copy(firework_entity) - vl_projectile.register("mcl_fireworks:rocket_" .. n, def) -- TODO one entity - minetest.register_craftitem("mcl_fireworks:rocket_" .. n, { -- TODO one item, use metadata + vl_projectile.register("vl_fireworks:rocket_" .. n, def) -- TODO one entity + minetest.register_craftitem("vl_fireworks:rocket_" .. n, { -- TODO one item, use metadata description = description, _tt_help = tt_help .. " " .. duration, - inventory_image = "mcl_fireworks_rocket.png", + inventory_image = "vl_fireworks_rocket.png", stack_max = 64, on_use = function(itemstack, user, pointed_thing) local elytra = mcl_playerplus.elytra[user] @@ -120,14 +120,14 @@ local function register_rocket(n, duration, force) if not minetest.is_creative_enabled(user:get_player_name()) then itemstack:take_item() end - minetest.sound_play("mcl_fireworks_rocket", {pos = user:get_pos()}) + minetest.sound_play("vl_fireworks_rocket", {pos = user:get_pos()}) end return itemstack end, on_place = function(itemstack, user, pointed_thing) local pos = pointed_thing.above -- pos.y = pos.y + 1 - vl_projectile.create("mcl_fireworks:rocket_" .. n, { + vl_projectile.create("vl_fireworks:rocket_" .. n, { pos=pos, velocity=vector.new(0,1,0) }) diff --git a/mods/ITEMS/mcl_fireworks/sounds/mcl_fireworks_rocket.ogg b/mods/ITEMS/vl_fireworks/sounds/vl_fireworks_rocket.ogg similarity index 100% rename from mods/ITEMS/mcl_fireworks/sounds/mcl_fireworks_rocket.ogg rename to mods/ITEMS/vl_fireworks/sounds/vl_fireworks_rocket.ogg diff --git a/textures/mcl_fireworks_entity.png b/textures/vl_fireworks_entity.png similarity index 100% rename from textures/mcl_fireworks_entity.png rename to textures/vl_fireworks_entity.png diff --git a/textures/mcl_fireworks_rocket.png b/textures/vl_fireworks_rocket.png similarity index 100% rename from textures/mcl_fireworks_rocket.png rename to textures/vl_fireworks_rocket.png