laser_blaster.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. minetest.register_craftitem("rangedweapons:blue_ray_visual", {
  2. wield_scale = {x=1.75,y=1.75,z=1.75},
  3. inventory_image = "rangedweapons_blue_ray.png",
  4. })
  5. minetest.register_tool("rangedweapons:laser_blaster", {
  6. stack_max= 1,
  7. wield_scale = {x=1.15,y=1.15,z=1.15},
  8. description = "" ..core.colorize("#35cdff","Laser blaster\n") ..core.colorize("#FFFFFF", "Ranged damage: 15\n") ..core.colorize("#FFFFFF", "accuracy: 100%\n") ..core.colorize("#FFFFFF", "knockback: 0\n") ..core.colorize("#FFFFFF", "Critical chance: 10%\n") ..core.colorize("#FFFFFF", "Critical efficiency: 2.0x\n") ..core.colorize("#FFFFFF", "Power usage: 10\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.3\n") ..core.colorize("#FFFFFF", "Enemy penetration: 50%\n") ..core.colorize("#FFFFFF", "Gun type: power pistol\n") ..core.colorize("#FFFFFF", "Bullet velocity: 65"),
  9. range = 0,
  10. inventory_image = "rangedweapons_laser_blaster.png",
  11. RW_powergun_capabilities = {
  12. power_damage = {fleshy=15,knockback=0},
  13. power_crit = 10,
  14. power_critEffc = 2.0,
  15. power_skill = {"",1},
  16. power_cooling = "rangedweapons:laser_blaster",
  17. power_velocity = 65,
  18. power_accuracy = 100,
  19. power_cooldown = 0.3,
  20. power_projectiles = 1,
  21. power_durability = 5000,
  22. power_sound = "rangedweapons_laser",
  23. power_glass_breaking = 1,
  24. power_door_breaking = 1,
  25. power_dps = 0,
  26. power_mob_penetration = 50,
  27. power_node_penetration = 0,
  28. power_dps = 0,
  29. power_consumption = 10,
  30. power_entity = "rangedweapons:shot_bullet",
  31. power_visual = "wielditem",
  32. power_texture = "rangedweapons:blue_ray_visual",
  33. power_projectile_size = 0.1,
  34. has_sparks = 0,
  35. ignites_explosives = 1,
  36. },
  37. on_use = function(itemstack, user, pointed_thing)
  38. rangedweapons_shoot_powergun(itemstack, user)
  39. return itemstack
  40. end,
  41. })