Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- set up ore and chunk
- minetest.register_node("minemaku:shineore",{
- tiles = {"shine-ore.png"},
- groups = {snappy=1, cracky=2, oddly_breakable_by_hand=2}
- })
- minetest.register_craftitem("minemaku:shinechunk", {
- inventory_image = "shine-chunk.png",
- wield_image = "shine-chunk.png"
- })
- minetest.register_craftitem("minemaku:singleshot", {
- inventory_image = "circle-shot.png",
- description = "Shot (1, Forward)",
- on_use=function(itemstack,user,pointed_thing)
- minetest.add_entity(user:getpos(),"minemaku:shotEntity")
- return true
- end
- })
- minetest.register_entity("minemaku:shotEntity",{
- physical=false,
- visual="sprite",
- textures = {"circle-shot.png"}
- })
- --crafting
- minetest.register_craft({
- type = "cooking",
- recipe = "minemaku:shineore",
- output = "minemaku:shinechunk"
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement