diff --git a/mods/boat/depends.txt b/mods/mcl_boats/depends.txt similarity index 100% rename from mods/boat/depends.txt rename to mods/mcl_boats/depends.txt diff --git a/mods/boat/init.lua b/mods/mcl_boats/init.lua similarity index 89% rename from mods/boat/init.lua rename to mods/mcl_boats/init.lua index 959badac24..1ef583a527 100644 --- a/mods/boat/init.lua +++ b/mods/mcl_boats/init.lua @@ -21,8 +21,8 @@ local boat = { physical = true, collisionbox = {-1,-0.5,-1, 1,0.5,1}, visual = "mesh", - mesh = "boat_base.x", - textures = {"boat_texture.png"}, + mesh = "mcl_boats_base.x", + textures = {"mcl_boats_texture.png"}, _driver = nil, _v = 0, @@ -62,13 +62,13 @@ function boat.on_punch(self, puncher, time_from_last_punch, tool_capabilities, d self._driver = nil boat.schedule_removal(self) if not minetest.setting_getbool("creative_mode") then - puncher:get_inventory():add_item("main", "boat:boat") + puncher:get_inventory():add_item("main", "mcl_boats:boat") end else boat.schedule_removal(self) if not minetest.setting_getbool("creative_mode") then - puncher:get_inventory():add_item("main", "boat:boat") + puncher:get_inventory():add_item("main", "mcl_boats:boat") end end @@ -143,11 +143,11 @@ function boat.schedule_removal(self) end -minetest.register_entity("boat:boat", boat) +minetest.register_entity("mcl_boats:boat", boat) -minetest.register_craftitem("boat:boat", { +minetest.register_craftitem("mcl_boats:boat", { description = "Boat", - inventory_image = "boat_inventory.png", + inventory_image = "mcl_boats_inventory.png", liquids_pointable = true, groups = { boat = 1, }, @@ -159,7 +159,7 @@ minetest.register_craftitem("boat:boat", { return end pointed_thing.under.y = pointed_thing.under.y+0.5 - minetest.add_entity(pointed_thing.under, "boat:boat") + minetest.add_entity(pointed_thing.under, "mcl_boats:boat") if not minetest.setting_getbool("creative_mode") then itemstack:take_item() end @@ -168,7 +168,7 @@ minetest.register_craftitem("boat:boat", { }) minetest.register_craft({ - output = "boat:boat", + output = "mcl_boats:boat", recipe = { {"", "", ""}, {"default:wood", "", "default:wood"}, diff --git a/mods/mcl_boats/mod.conf b/mods/mcl_boats/mod.conf new file mode 100644 index 0000000000..f14456c5f0 --- /dev/null +++ b/mods/mcl_boats/mod.conf @@ -0,0 +1 @@ +name = mcl_boats diff --git a/mods/boat/models/boat_base.x b/mods/mcl_boats/models/mcl_boat_base.x similarity index 100% rename from mods/boat/models/boat_base.x rename to mods/mcl_boats/models/mcl_boat_base.x diff --git a/mods/boat/textures/boat_inventory.png b/mods/mcl_boats/textures/mcl_boats_inventory.png similarity index 100% rename from mods/boat/textures/boat_inventory.png rename to mods/mcl_boats/textures/mcl_boats_inventory.png diff --git a/mods/boat/textures/boat_texture.png b/mods/mcl_boats/textures/mcl_boats_texture.png similarity index 100% rename from mods/boat/textures/boat_texture.png rename to mods/mcl_boats/textures/mcl_boats_texture.png