SHARE
TWEET

minemaku init.lua

a guest Jul 25th, 2017 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- set up ore and chunk
  2. minetest.register_node("minemaku:shineore",{
  3.   tiles = {"shine-ore.png"},
  4.   groups = {snappy=1, cracky=2, oddly_breakable_by_hand=2}
  5. })
  6. minetest.register_craftitem("minemaku:shinechunk", {
  7.   inventory_image = "shine-chunk.png",
  8.   wield_image = "shine-chunk.png"
  9. })
  10. minetest.register_craftitem("minemaku:singleshot", {
  11.   inventory_image = "circle-shot.png",
  12.   description = "Shot (1, Forward)",
  13.   on_use=function(itemstack,user,pointed_thing)
  14.     minetest.add_entity(user:getpos(),"minemaku:shotEntity")
  15.     return true
  16.   end
  17.  
  18. })
  19. minetest.register_entity("minemaku:shotEntity",{
  20.   physical=false,
  21.   visual="sprite",
  22.   textures = {"circle-shot.png"}
  23. })
  24.  
  25. --crafting
  26. minetest.register_craft({
  27.   type = "cooking",
  28.   recipe = "minemaku:shineore",
  29.   output = "minemaku:shinechunk"
  30. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top