Namespacing pt. 3
This commit is contained in:
@@ -5,7 +5,7 @@ local MOD_NAME = minetest.get_current_modname()
|
||||
local MOD_PATH = minetest.get_modpath(MOD_NAME)
|
||||
local Vec3 = dofile(MOD_PATH..'/lib/Vec3_1-0.lua')
|
||||
|
||||
minetest.register_craftitem('more_fire:molotov_cocktail', {
|
||||
minetest.register_craftitem(':more_fire:molotov_cocktail', {
|
||||
description = 'Throwable Firebomb',
|
||||
inventory_image = 'more_fire_molotov_cocktail.png',
|
||||
on_place = function(itemstack, user, pointed_thing)
|
||||
@@ -219,7 +219,7 @@ MORE_FIRE_MOLOTOV_ENTITY.on_step = function(self, dtime)
|
||||
self.lastpos={x=pos.x, y=pos.y, z=pos.z}
|
||||
end
|
||||
|
||||
minetest.register_entity('more_fire:molotov_entity', MORE_FIRE_MOLOTOV_ENTITY)
|
||||
minetest.register_entity(':more_fire:molotov_entity', MORE_FIRE_MOLOTOV_ENTITY)
|
||||
|
||||
minetest.override_item('more_fire:molotov_cocktail', {on_use = throw_cocktail})
|
||||
|
||||
@@ -276,10 +276,3 @@ minetest.register_craft( {
|
||||
{'vessels:glass_bottle'},
|
||||
}
|
||||
})
|
||||
|
||||
-- fuel recipes
|
||||
minetest.register_craft({
|
||||
type = 'fuel',
|
||||
recipe = 'more_fire:molotov_cocktail',
|
||||
burntime = 5,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user