more balancing

master
oilboi 2019-06-25 22:18:55 -04:00
parent 76d1b3eee0
commit f9c525ba56
7 changed files with 304 additions and 227 deletions

View File

@ -22,9 +22,9 @@ minetest.register_globalstep(function(dtime)
local arrow = minetest.add_entity(pos,"bow:arrow")
local vel = player:get_player_velocity()
local dir = player:get_look_dir()
dir.x = vel.x + (dir.x * 15)
dir.x = vel.x + (dir.x * 30)
dir.y = vel.y + (dir.y * 15 + 2)
dir.z = vel.z + (dir.z * 15)
dir.z = vel.z + (dir.z * 30)
arrow:set_velocity(dir)
minetest.sound_play("bow", {
object = player,
@ -37,7 +37,7 @@ minetest.register_globalstep(function(dtime)
end
end
elseif bow_cycle[name] then
print(bow_cycle[name].timer)
--print(bow_cycle[name].timer)
bow_cycle[name] = nil
end
end
@ -61,8 +61,8 @@ local arrow = {
collide_with_objects = false,
collisionbox = {-0.1,-0.1,-0.1,0.1,0.1,0.1},
--mesh = "arrow.obj",
textures = {"items:arrow"},
visual_size = {x=1,y=1},
textures = {"items:arrow_entity_placeholder"},
visual_size = {x=1,y=0.5},
timer = 0,
speed = 0,
is_visible = true,

View File

@ -71,6 +71,11 @@ minetest.register_craftitem("items:arrow", {
inventory_image = "arrow_inv.png",
groups = {arrow = 1},
})
minetest.register_craftitem("items:arrow_entity_placeholder", {
description = "arrow_entity_placeholder",
inventory_image = "arrow.png",
groups = {debugging = 1},
})
minetest.register_craftitem("items:string", {
description = "String",

View File

@ -0,0 +1,68 @@
{
"credit": "Made with Blockbench",
"textures": {
"1": "Temp Save/arrow_mesh"
},
"elements": [
{
"from": [7.75, -0.25, 0],
"to": [8.25, 0.25, 16],
"faces": {
"north": {"uv": [3.5, 0, 4, 0.5], "texture": "#1"},
"east": {"uv": [3.5, 0, 4.5, 16], "texture": "#1"},
"south": {"uv": [3.5, 0, 4, 0.5], "texture": "#1"},
"west": {"uv": [3.5, 0, 4.5, 16], "rotation": 90, "texture": "#1"},
"up": {"uv": [3.5, 0, 4.5, 16], "texture": "#1"},
"down": {"uv": [3.5, 0, 4.5, 16], "texture": "#1"}
}
},
{
"from": [8, -1.5, -1],
"to": [8, 1.5, 2],
"faces": {
"north": {"uv": [0, 0, 0, 3], "texture": "#1"},
"east": {"uv": [0, 3, 3, 6], "texture": "#1"},
"south": {"uv": [0, 0, 0, 3], "texture": "#1"},
"west": {"uv": [3, 3, 0, 6], "texture": "#1"},
"up": {"uv": [0, 0, 0, 3], "texture": "#1"},
"down": {"uv": [0, 0, 0, 3], "texture": "#1"}
}
},
{
"from": [6.5, 0, -1],
"to": [9.5, 0, 2],
"faces": {
"north": {"uv": [0, 0, 3, 0], "texture": "#1"},
"east": {"uv": [0, 0, 3, 0], "texture": "#1"},
"south": {"uv": [0, 0, 3, 0], "texture": "#1"},
"west": {"uv": [0, 0, 3, 0], "texture": "#1"},
"up": {"uv": [0, 3, 3, 6], "rotation": 270, "texture": "#1"},
"down": {"uv": [0, 3, 3, 6], "rotation": 90, "texture": "#1"}
}
},
{
"from": [6.5, 0, 14],
"to": [9.5, 0, 17],
"faces": {
"north": {"uv": [0, 0, 3, 0], "texture": "#1"},
"east": {"uv": [0, 0, 3, 0], "texture": "#1"},
"south": {"uv": [0, 0, 3, 0], "texture": "#1"},
"west": {"uv": [0, 0, 3, 0], "texture": "#1"},
"up": {"uv": [0, 0, 3, 3], "rotation": 90, "texture": "#1"},
"down": {"uv": [0, 0, 3, 3], "rotation": 270, "texture": "#1"}
}
},
{
"from": [8, -1.5, 14],
"to": [8, 1.5, 17],
"faces": {
"north": {"uv": [0, 0, 0, 3], "texture": "#1"},
"east": {"uv": [3, 0, 0, 3], "texture": "#1"},
"south": {"uv": [0, 0, 0, 3], "texture": "#1"},
"west": {"uv": [0, 0, 3, 3], "texture": "#1"},
"up": {"uv": [0, 0, 0, 3], "texture": "#1"},
"down": {"uv": [0, 0, 0, 3], "texture": "#1"}
}
}
]
}

View File

@ -0,0 +1,4 @@
# Made in Blockbench 2.6.7
newmtl 0
map_Kd tail and point.png
newmtl none

View File

@ -1,50 +1,50 @@
# Made in Blockbench 2.6.6
mtllib bow.mtl
# Made in Blockbench 2.6.7
mtllib arrow.mtl
o cube
v 11 1 1
v 11 1 -1
v 11 -1 1
v 11 -1 -1
v -11 1 -1
v -11 1 1
v -11 -1 -1
v -11 -1 1
vt 0.5 1
vt 0.5 0.875
vt 1 1
vt 0.5 0.875
vt 1 0.875
vt 1 1
vt 0.5 1
vt 0.5 0.875
vt 1 1
vt 0.5 0.875
vt 1 0.875
vt 1 1
vt 0.5 1
vt 0.5 0.875
vt 1 1
vt 0.5 0.875
vt 1 0.875
vt 1 1
vt 0.5 1
vt 0.5 0.875
vt 1 1
vt 0.5 0.875
vt 1 0.875
vt 1 1
vt 0.5 1
vt 0.5 0.875
vt 1 1
vt 0.5 0.875
vt 1 0.875
vt 1 1
vt 0.5 1
vt 0.5 0.875
vt 1 1
vt 0.5 0.875
vt 1 0.875
vt 1 1
v 0.25 -7.75 8
v 0.25 -7.75 -8
v 0.25 -8.25 8
v 0.25 -8.25 -8
v -0.25 -7.75 -8
v -0.25 -7.75 8
v -0.25 -8.25 -8
v -0.25 -8.25 8
vt 0.21875 1
vt 0.21875 0
vt 0.28125 1
vt 0.21875 0
vt 0.28125 0
vt 0.28125 1
vt 0.21875 0
vt 0.28125 0
vt 0.21875 1
vt 0.28125 0
vt 0.28125 1
vt 0.21875 1
vt 0.21875 1
vt 0.21875 0
vt 0.28125 1
vt 0.21875 0
vt 0.28125 0
vt 0.28125 1
vt 0.21875 1
vt 0.21875 0
vt 0.28125 1
vt 0.21875 0
vt 0.28125 0
vt 0.28125 1
vt 0.21875 1
vt 0.21875 0.96875
vt 0.25 1
vt 0.21875 0.96875
vt 0.25 0.96875
vt 0.25 1
vt 0.21875 1
vt 0.21875 0.96875
vt 0.25 1
vt 0.21875 0.96875
vt 0.25 0.96875
vt 0.25 1
vn 1 0 0
vn 1 0 0
vn 1 0 0
@ -81,69 +81,69 @@ vn 0 0 -1
vn 0 0 -1
vn 0 0 -1
vn 0 0 -1
usemtl 0
usemtl 2
f 1/1/1 3/2/2 2/3/3
f 3/4/4 4/5/5 2/6/6
usemtl 0
usemtl 2
f 5/7/7 7/8/8 6/9/9
f 7/10/10 8/11/11 6/12/12
usemtl 0
usemtl 2
f 5/13/13 6/14/14 2/15/15
f 6/16/16 1/17/17 2/18/18
usemtl 0
usemtl 2
f 8/19/19 7/20/20 3/21/21
f 7/22/22 4/23/23 3/24/24
usemtl 0
usemtl 2
f 6/25/25 8/26/26 1/27/27
f 8/28/28 3/29/29 1/30/30
usemtl 0
usemtl 2
f 2/31/31 4/32/32 5/33/33
f 4/34/34 7/35/35 5/36/36
o cube
v -7 0.0009999999999994458 4
v -7 0.0009999999999994458 -4
v -7 0 4
v -7 0 -4
v -12 0.0009999999999994458 -4
v -12 0.0009999999999994458 4
v -12 0 -4
v -12 0 4
v 0.0009999999999994458 -6.5 -6
v 0.0009999999999994458 -6.5 -9
v 0.0009999999999994458 -9.5 -6
v 0.0009999999999994458 -9.5 -9
v 0 -6.5 -9
v 0 -6.5 -6
v 0 -9.5 -9
v 0 -9.5 -6
vt 0 0.8125
vt 0 0.625
vt 0.1875 0.8125
vt 0 0.625
vt 0.1875 0.625
vt 0.1875 0.8125
vt 0.1875 0.8125
vt 0.1875 0.625
vt 0 0.8125
vt 0.1875 0.625
vt 0 0.625
vt 0 0.8125
vt 0 1
vt 0 0.5
vt 0.3125 1
vt 0 0.5
vt 0.3125 0.5
vt 0.3125 1
vt 0 0.8125
vt 0 1
vt 0 0.5
vt 0.3125 1
vt 0 0.5
vt 0.3125 0.5
vt 0.3125 1
vt 0.09375 1
vt 0.09375 0.75
vt 0.25 1
vt 0.09375 0.75
vt 0.25 0.75
vt 0.25 1
vt 0.09375 1
vt 0.09375 0.75
vt 0.25 1
vt 0.09375 0.75
vt 0.25 0.75
vt 0.25 1
vt 0 0.8125
vt 0 0.8125
vt 0 1
vt 0 0.5
vt 0.3125 1
vt 0 0.5
vt 0.3125 0.5
vt 0.3125 1
vt 0 1
vt 0 0.5
vt 0.3125 1
vt 0 0.5
vt 0.3125 0.5
vt 0.3125 1
vt 0 0.8125
vt 0 1
vt 0 0.8125
vt 0 0.8125
vt 0 1
vt 0 1
vt 0 0.8125
vt 0 1
vt 0 0.8125
vt 0 0.8125
vt 0 1
vt 0 1
vt 0 0.8125
vt 0 1
vt 0 0.8125
vt 0 0.8125
vt 0 1
vn 1 0 0
vn 1 0 0
vn 1 0 0
@ -180,69 +180,69 @@ vn 0 0 -1
vn 0 0 -1
vn 0 0 -1
vn 0 0 -1
usemtl none
usemtl 2
f 9/37/37 11/38/38 10/39/39
f 11/40/40 12/41/41 10/42/42
usemtl none
usemtl 2
f 13/43/43 15/44/44 14/45/45
f 15/46/46 16/47/47 14/48/48
usemtl 0
usemtl 2
f 13/49/49 14/50/50 10/51/51
f 14/52/52 9/53/53 10/54/54
usemtl 0
usemtl 2
f 16/55/55 15/56/56 11/57/57
f 15/58/58 12/59/59 11/60/60
usemtl none
usemtl 2
f 14/61/61 16/62/62 9/63/63
f 16/64/64 11/65/65 9/66/66
usemtl none
usemtl 2
f 10/67/67 12/68/68 13/69/69
f 12/70/70 15/71/71 13/72/72
o cube
v -7 4 0.0009999999999994458
v -7 4 0
v -7 -4 0.0009999999999994458
v -7 -4 0
v -12 4 0
v -12 4 0.0009999999999994458
v -12 -4 0
v -12 -4 0.0009999999999994458
v 1.5 -7.999 -6
v 1.5 -7.999 -9
v 1.5 -8 -6
v 1.5 -8 -9
v -1.5 -7.999 -9
v -1.5 -7.999 -6
v -1.5 -8 -9
v -1.5 -8 -6
vt 0 1
vt 0 0.5
vt 0.3125 1
vt 0 0.5
vt 0.3125 0.5
vt 0.3125 1
vt 0 1
vt 0 0.5
vt 0.3125 1
vt 0 0.5
vt 0.3125 0.5
vt 0.3125 1
vt 0.1875 1
vt 0 1
vt 0 0.5
vt 0.3125 1
vt 0 0.5
vt 0.3125 0.5
vt 0.3125 1
vt 0.1875 1
vt 0.1875 1
vt 0 1
vt 0 0.5
vt 0.3125 1
vt 0 0.5
vt 0.3125 0.5
vt 0.3125 1
vt 0.09375 1
vt 0.09375 0.75
vt 0.25 1
vt 0.09375 0.75
vt 0.25 0.75
vt 0.25 1
vt 0.0625 0.75
vt 0.0625 0.5
vt 0.21875 0.75
vt 0.0625 0.5
vt 0.21875 0.5
vt 0.21875 0.75
vt 0 1
vt 0.1875 1
vt 0 1
vt 0.1875 1
vt 0.1875 1
vt 0.1875 0.8125
vt 0 0.8125
vt 0.1875 0.625
vt 0 0.8125
vt 0 0.625
vt 0.1875 0.625
vt 0 0.625
vt 0.1875 0.625
vt 0 0.8125
vt 0.1875 0.625
vt 0.1875 0.8125
vt 0 0.8125
vt 0 1
vt 0 1
vt 0.1875 1
vt 0 1
vt 0.1875 1
vt 0.1875 1
vt 0 1
vt 0 1
vt 0.1875 1
vt 0 1
vt 0.1875 1
vt 0.1875 1
vn 1 0 0
vn 1 0 0
vn 1 0 0
@ -279,69 +279,69 @@ vn 0 0 -1
vn 0 0 -1
vn 0 0 -1
vn 0 0 -1
usemtl none
usemtl 2
f 17/73/73 19/74/74 18/75/75
f 19/76/76 20/77/77 18/78/78
usemtl none
usemtl 2
f 21/79/79 23/80/80 22/81/81
f 23/82/82 24/83/83 22/84/84
usemtl none
usemtl 2
f 21/85/85 22/86/86 18/87/87
f 22/88/88 17/89/89 18/90/90
usemtl none
usemtl 2
f 24/91/91 23/92/92 19/93/93
f 23/94/94 20/95/95 19/96/96
usemtl 0
usemtl 2
f 22/97/97 24/98/98 17/99/99
f 24/100/100 19/101/101 17/102/102
usemtl 0
usemtl 2
f 18/103/103 20/104/104 21/105/105
f 20/106/106 23/107/107 21/108/108
o cube
v 13 0.0009999999999994458 4
v 13 0.0009999999999994458 -4
v 13 0 4
v 13 0 -4
v 9 0.0009999999999994458 -4
v 9 0.0009999999999994458 4
v 9 0 -4
v 9 0 4
v 1.5 -7.999 9
v 1.5 -7.999 6
v 1.5 -8 9
v 1.5 -8 6
v -1.5 -7.999 6
v -1.5 -7.999 9
v -1.5 -8 6
v -1.5 -8 9
vt 0 1
vt 0 1
vt 0.5 1
vt 0.1875 1
vt 0 1
vt 0.5 1
vt 0.5 1
vt 0.1875 1
vt 0.1875 1
vt 0 1
vt 0 1
vt 0.5 1
vt 0.1875 1
vt 0 1
vt 0.5 1
vt 0.5 1
vt 0.15625 0.4375
vt 0.15625 0.1875
vt 0.3125 0.4375
vt 0.15625 0.1875
vt 0.3125 0.1875
vt 0.3125 0.4375
vt 0.15625 0.4375
vt 0.15625 0.1875
vt 0.3125 0.4375
vt 0.15625 0.1875
vt 0.3125 0.1875
vt 0.3125 0.4375
vt 0.1875 1
vt 0.1875 1
vt 0 0.8125
vt 0.1875 0.8125
vt 0 1
vt 0.1875 0.8125
vt 0.1875 1
vt 0 1
vt 0.1875 1
vt 0 1
vt 0.1875 0.8125
vt 0 1
vt 0 0.8125
vt 0.1875 0.8125
vt 0 1
vt 0 1
vt 0.375 1
vt 0.1875 1
vt 0 1
vt 0.375 1
vt 0.375 1
vt 0.1875 1
vt 0.1875 1
vt 0 1
vt 0 1
vt 0.375 1
vt 0.1875 1
vt 0 1
vt 0.375 1
vt 0.375 1
vt 0.1875 1
vt 0.1875 1
vn 1 0 0
vn 1 0 0
vn 1 0 0
@ -378,69 +378,69 @@ vn 0 0 -1
vn 0 0 -1
vn 0 0 -1
vn 0 0 -1
usemtl none
usemtl 2
f 25/109/109 27/110/110 26/111/111
f 27/112/112 28/113/113 26/114/114
usemtl none
usemtl 2
f 29/115/115 31/116/116 30/117/117
f 31/118/118 32/119/119 30/120/120
usemtl 0
usemtl 2
f 29/121/121 30/122/122 26/123/123
f 30/124/124 25/125/125 26/126/126
usemtl 0
usemtl 2
f 32/127/127 31/128/128 27/129/129
f 31/130/130 28/131/131 27/132/132
usemtl none
usemtl 2
f 30/133/133 32/134/134 25/135/135
f 32/136/136 27/137/137 25/138/138
usemtl none
usemtl 2
f 26/139/139 28/140/140 29/141/141
f 28/142/142 31/143/143 29/144/144
o cube
v 13 4 0.0009999999999994458
v 13 4 0
v 13 -4 0.0009999999999994458
v 13 -4 0
v 9 4 0
v 9 4 0.0009999999999994458
v 9 -4 0
v 9 -4 0.0009999999999994458
v 0.0009999999999994458 -6.5 9
v 0.0009999999999994458 -6.5 6
v 0.0009999999999994458 -9.5 9
v 0.0009999999999994458 -9.5 6
v 0 -6.5 6
v 0 -6.5 9
v 0 -9.5 6
v 0 -9.5 9
vt 0.1875 1
vt 0.1875 0.8125
vt 0 1
vt 0 0.5
vt 0 1
vt 0 0.5
vt 0 0.5
vt 0.1875 0.8125
vt 0 0.8125
vt 0 1
vt 0 1
vt 0 0.5
vt 0 0.8125
vt 0.1875 1
vt 0 0.8125
vt 0.1875 0.8125
vt 0.1875 1
vt 0 1
vt 0 0.5
vt 0 0.5
vt 0 0.8125
vt 0 1
vt 0 0.8125
vt 0 0.8125
vt 0 1
vt 0 1
vt 0 0.8125
vt 0 1
vt 0.375 1
vt 0 1
vt 0.375 1
vt 0.375 1
vt 0 0.8125
vt 0 0.8125
vt 0 1
vt 0 1
vt 0.375 1
vt 0 0.8125
vt 0 1
vt 0 0.8125
vt 0 0.8125
vt 0 1
vt 0 1
vt 0 0.8125
vt 0 1
vt 0 0.8125
vt 0 0.8125
vt 0 1
vt 0.375 1
vt 0.375 1
vt 0.15625 0.4375
vt 0.15625 0.1875
vt 0.3125 0.4375
vt 0.15625 0.1875
vt 0.3125 0.1875
vt 0.3125 0.4375
vt 0 0.4375
vt 0 0.1875
vt 0.15625 0.4375
vt 0 0.1875
vt 0.15625 0.1875
vt 0.15625 0.4375
vn 1 0 0
vn 1 0 0
vn 1 0 0
@ -477,21 +477,21 @@ vn 0 0 -1
vn 0 0 -1
vn 0 0 -1
vn 0 0 -1
usemtl none
usemtl 2
f 33/145/145 35/146/146 34/147/147
f 35/148/148 36/149/149 34/150/150
usemtl none
usemtl 2
f 37/151/151 39/152/152 38/153/153
f 39/154/154 40/155/155 38/156/156
usemtl none
usemtl 2
f 37/157/157 38/158/158 34/159/159
f 38/160/160 33/161/161 34/162/162
usemtl none
usemtl 2
f 40/163/163 39/164/164 35/165/165
f 39/166/166 36/167/167 35/168/168
usemtl 0
usemtl 2
f 38/169/169 40/170/170 33/171/171
f 40/172/172 35/173/173 33/174/174
usemtl 0
usemtl 2
f 34/175/175 36/176/176 37/177/177
f 36/178/178 39/179/179 37/180/180

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB