-
Notifications
You must be signed in to change notification settings - Fork 0
/
420blaster.lua
40 lines (39 loc) · 1.69 KB
/
420blaster.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
minetest.register_tool("rangedweapons:420blaster", {
stack_max= 1,
wield_scale = {x=2.0,y=2.0,z=1.75},
description = "" ..core.colorize("#35cdff","weed Shooter\n") ..core.colorize("#FFFFFF", "Ranged damage: 10\n") ..core.colorize("#FFFFFF", "accuracy: 100%\n") ..core.colorize("#FFFFFF", "projectiles: 6\n") ..core.colorize("#FFFFFF", "knockback: 0\n") ..core.colorize("#FFFFFF", "Critical chance: 8%\n") ..core.colorize("#FFFFFF", "Critical efficiency: 2.2x\n") ..core.colorize("#FFFFFF", "Power usage: 30\n") ..core.colorize("#FFFFFF", "Rate of fire: 0.1 (full-auto) \n") ..core.colorize("#FFFFFF", "Enemy penetration: 40%\n") ..core.colorize("#FFFFFF", "Gun type: magic gun\n") ..core.colorize("#FFFFFF", "Bullet velocity: 60"),
range = 0,
inventory_image = "rangedweapons_420blaster.png",
RW_powergun_capabilities = {
automatic_gun = 1,
power_damage = {fleshy=12,knockback=0},
power_crit = 8,
power_critEffc = 2.2,
power_skill = {"",1},
power_cooling = "rangedweapons:420blaster",
power_velocity = 55,
power_accuracy = 40,
power_cooldown = 0.1,
power_projectiles = 1,
power_durability = 2000,
power_sound = "rangedweapons_420",
power_glass_breaking = 1,
power_door_breaking = 1,
power_dps = 0,
power_mob_penetration = 40,
power_node_penetration = 0,
power_dps = 0,
power_consumption = 30,
power_entity = "rangedweapons:shot_bullet",
power_visual = "sprite",
power_texture = "rangedweapons_weed.png",
power_projectile_size = 0.005,
power_projectiles = 1,
has_sparks = 0,
ignites_explosives = 1,
},
on_use = function(itemstack, user, pointed_thing)
rangedweapons_shoot_powergun(itemstack, user)
return itemstack
end,
})