Skip to content

Commit 4cc2aca

Browse files
committed
Added Light Staff
Moved textures Added Line particle and utility functions Added math util functions (from old project)
1 parent f298b79 commit 4cc2aca

File tree

21 files changed

+868
-105
lines changed

21 files changed

+868
-105
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"format_version": "1.20.50",
3+
"minecraft:item": {
4+
"description": {
5+
"identifier": "whynot:light",
6+
"menu_category": {
7+
"category": "equipment",
8+
"group": "itemGroup.name.sword"
9+
}
10+
},
11+
"components": {
12+
"minecraft:max_stack_size": 1,
13+
"minecraft:icon": "light",
14+
"minecraft:damage": 10,
15+
"minecraft:can_destroy_in_creative": false
16+
}
17+
}
18+
}
Lines changed: 37 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,39 @@
11
{
2-
"format_version": 2,
3-
"header": {
4-
"name": "Why Not? [BE]",
5-
"description": "Some ask why, the question is why not?",
6-
"uuid": "efef9a3b-6709-4062-8d0f-5143d0435138",
7-
"version": [
8-
1,
9-
0,
10-
0
11-
],
12-
"min_engine_version": [
13-
1,
14-
20,
15-
30
16-
]
17-
},
18-
"modules": [
19-
{
20-
"description": "Script resources",
21-
"language": "javascript",
22-
"type": "script",
23-
"uuid": "ff273519-3db9-4fb1-b42a-d1a8354907ff",
24-
"version": [
25-
1,
26-
0,
27-
0
28-
],
29-
"entry": "scripts/main.js"
30-
}
31-
],
32-
"dependencies": [
33-
{
34-
"module_name": "@minecraft/server",
35-
"version": "2.8.0-beta"
36-
},
37-
{
38-
"module_name": "@minecraft/server-ui",
39-
"version": "2.1.0-beta"
40-
},
41-
{
42-
"uuid": "7e3f4631-305a-4bc2-a18b-9bac016a92ae",
43-
"version": [1,0,0]
44-
}
45-
]
2+
"format_version": 2,
3+
"header": {
4+
"name": "Why Not? [BE]",
5+
"description": "Some ask why, the question is why not?",
6+
"uuid": "efef9a3b-6709-4062-8d0f-5143d0435138",
7+
"version": [1, 0, 0],
8+
"min_engine_version": [1, 20, 30]
9+
},
10+
"modules": [
11+
{
12+
"description": "Script resources",
13+
"language": "javascript",
14+
"type": "script",
15+
"uuid": "ff273519-3db9-4fb1-b42a-d1a8354907ff",
16+
"version": [1, 0, 0],
17+
"entry": "scripts/main.js"
18+
}
19+
],
20+
"dependencies": [
21+
{
22+
"module_name": "@minecraft/server",
23+
"version": "2.8.0-beta"
24+
},
25+
{
26+
"module_name": "@minecraft/server-ui",
27+
"version": "2.1.0-beta"
28+
},
29+
{
30+
"uuid": "7e3f4631-305a-4bc2-a18b-9bac016a92ae",
31+
"version": [1, 0, 0]
32+
}
33+
],
34+
"metadata": {
35+
"generated_with": {
36+
"blockbench_item_wizard": ["1.2.4"]
37+
}
38+
}
4639
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"format_version": "1.8.0",
3+
"animations": {
4+
"animation.light.first_person_hold": {
5+
"loop": true,
6+
"bones": {
7+
"root_item": {
8+
"rotation": [66, 60, -60],
9+
"position": [3, 23, 4]
10+
}
11+
}
12+
},
13+
"animation.light.third_person_hold": {
14+
"loop": true,
15+
"bones": {
16+
"root_item": {
17+
"rotation": [90, 0, 0],
18+
"position": [0.5, 22.5, -0.5]
19+
}
20+
}
21+
}
22+
}
23+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"format_version": "1.10.0",
3+
"minecraft:attachable": {
4+
"description": {
5+
"identifier": "whynot:light",
6+
"render_controllers": ["controller.render.item_default"],
7+
"materials": {
8+
"default": "entity_alphatest",
9+
"enchanted": "entity_alphatest_glint"
10+
},
11+
"textures": {
12+
"default": "textures/entity/attachable/light",
13+
"enchanted": "textures/misc/enchanted_item_glint"
14+
},
15+
"geometry": {
16+
"default": "geometry.light"
17+
},
18+
"animations": {
19+
"first_person_hold": "animation.light.first_person_hold",
20+
"third_person_hold": "animation.light.third_person_hold"
21+
},
22+
"scripts": {
23+
"animate": [
24+
{
25+
"first_person_hold": "c.is_first_person"
26+
},
27+
{
28+
"third_person_hold": "!c.is_first_person"
29+
}
30+
]
31+
}
32+
}
33+
}
34+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"format_version": "1.19.0",
3+
"minecraft:geometry": [
4+
{
5+
"description": {
6+
"identifier": "geometry.light",
7+
"texture_width": 32,
8+
"texture_height": 32,
9+
"visible_bounds_width": 2,
10+
"visible_bounds_height": 4,
11+
"visible_bounds_offset": [0, 1, 0]
12+
},
13+
"bones": [
14+
{
15+
"name": "root_item",
16+
"pivot": [-0.5, 0, 0],
17+
"binding": "q.item_slot_to_bone_name(c.item_slot)",
18+
"cubes": [
19+
{"origin": [-1, -10.25, -0.25], "size": [1, 18.25, 0.5], "uv": [1, 0]},
20+
{"origin": [-1, 7.25, -0.75], "size": [1, 1.25, 1.5], "uv": [1, 22]},
21+
{"origin": [-1, 7.75, -0.5], "size": [1, 8.25, 1], "uv": [9, 14]},
22+
{"origin": [-1, 15, 0.5], "size": [1, 5.75, 0.35], "uv": [15, 19]},
23+
{"origin": [-1, 15, -0.85], "size": [1, 5.75, 0.35], "uv": [19, 19]},
24+
{"origin": [-1, 15.275, -1.025], "size": [1, 5.125, 0.525], "uv": [15, 19]},
25+
{"origin": [-1, 15.275, 0.475], "size": [1, 5.125, 0.525], "uv": [15, 19]},
26+
{"origin": [-1, 17.225, 0.375], "size": [1, 0.275, 0.1], "uv": [1, 0]},
27+
{"origin": [-1, 17.425, 0.275], "size": [1, 0.075, 0.1], "uv": [1, 0]},
28+
{"origin": [0, 17.225, -0.4], "size": [1, 0.275, 0.1], "pivot": [0, 17.4125, -0.4], "rotation": [0, 180, 0], "uv": [1, 0]},
29+
{"origin": [0, 17.425, -0.5], "size": [1, 0.075, 0.1], "pivot": [0, 17.4125, -0.4], "rotation": [0, 180, 0], "uv": [1, 0]},
30+
{"origin": [0, 15.9, 0.375], "size": [1, 0.275, 0.1], "pivot": [0, 16.0875, -0.0125], "rotation": [0, 0, -180], "uv": [1, 0]},
31+
{"origin": [0, 16.1, 0.275], "size": [1, 0.075, 0.1], "pivot": [0, 16.0875, -0.0125], "rotation": [0, 0, -180], "uv": [1, 0]},
32+
{"origin": [-1, 16.1, 0.275], "size": [1, 0.075, 0.1], "pivot": [-1, 16.0875, -0.0125], "rotation": [0, 180, -180], "uv": [1, 0]},
33+
{"origin": [-1, 15.9, 0.375], "size": [1, 0.275, 0.1], "pivot": [-1, 16.0875, -0.0125], "rotation": [0, 180, -180], "uv": [1, 0]},
34+
{"origin": [-1, 17.75, -0.175], "size": [1, 17.25, 0.35], "uv": [5, 0]},
35+
{"origin": [-1, 17.5, -0.425], "size": [1, 14.35, 0.85], "uv": [15, 0]},
36+
{"origin": [-1, 17.5, -0.725], "size": [1, 13.35, 1.45], "uv": [9, 0]},
37+
{"origin": [-1, 22.5, -0.975], "size": [1, 4.35, 1.95], "uv": [19, 3]},
38+
{"origin": [-1, 23.15, -1.125], "size": [1, 3.05, 2.25], "uv": [15, 14]},
39+
{"origin": [-1, 23.675, -1.45], "size": [1, 2, 2.9], "uv": [1, 18]},
40+
{"origin": [-1, 10.5, 1.5], "size": [1, 1, 1], "uv": [23, 13]},
41+
{"origin": [-1, 10.5, -2.5], "size": [1, 1, 1], "uv": [23, 13]},
42+
{"origin": [-1, 12.23523, -1.54058], "size": [1, 1.5, 0.5], "pivot": [-1, 12.98523, -1.29058], "rotation": [40, 0, 0], "uv": [6, 17]},
43+
{"origin": [-1, 12.23523, 1.08442], "size": [1, 1.5, 0.5], "pivot": [-1, 12.98523, 1.33442], "rotation": [-40, 0, 0], "uv": [6, 17]},
44+
{"origin": [-1, 14.03523, -1.54058], "size": [1, 1.5, 0.35], "pivot": [-1, 14.78523, -1.29058], "rotation": [40, 0, 0], "uv": [20, 13]},
45+
{"origin": [-1, 15.18523, -1.96558], "size": [1, 4.2, 0.325], "pivot": [-1, 15.93523, -1.71558], "rotation": [0, 0, 0], "uv": [24, 15]},
46+
{"origin": [0, 15.18523, 1.25942], "size": [1, 4.2, 0.325], "pivot": [0, 15.58613, 1.64944], "rotation": [0, 180, 0], "uv": [23, 15]},
47+
{"origin": [0, 14.03942, 1.10294], "size": [1, 1.5, 0.35], "pivot": [0, 15.58613, 1.64944], "rotation": [40, 180, 0], "uv": [21, 13]},
48+
{"origin": [-1, 10.5, -1.25], "size": [1, 1, 2.5], "uv": [19, 0]},
49+
{"origin": [-1, -7.75, -0.75], "size": [1, 0.75, 1.5], "uv": [23, 19]},
50+
{"origin": [-1, -8, -0.5], "size": [1, 1.25, 1], "uv": [19, 11]},
51+
{"origin": [-1, -6.25, -1], "size": [1, 1, 2], "uv": [19, 0]},
52+
{"origin": [-1, -6.5, -0.75], "size": [1, 1.5, 1.5], "uv": [19, 11]},
53+
{"origin": [-1, -6.75, -0.5], "size": [1, 2, 1], "uv": [19, 8]}
54+
]
55+
}
56+
]
57+
}
58+
]
59+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"format_version": "1.21.50",
3+
"particle_effect": {
4+
"description": {
5+
"identifier": "whynot:line",
6+
"basic_render_parameters": {
7+
"material": "particles_blend",
8+
"texture": "textures/white"
9+
}
10+
},
11+
"components": {
12+
"minecraft:emitter_initialization": {
13+
"creation_expression": "variable.direction;variable.length;variable.thickness;"
14+
},
15+
"minecraft:emitter_rate_instant": {
16+
"num_particles": 1
17+
},
18+
"minecraft:emitter_lifetime_once": {
19+
"active_time": 0.08
20+
},
21+
"minecraft:emitter_shape_point": {},
22+
"minecraft:particle_lifetime_expression": {
23+
"max_lifetime": 0.05
24+
},
25+
"minecraft:particle_initial_speed": 0,
26+
"minecraft:particle_motion_dynamic": {},
27+
"minecraft:particle_appearance_billboard": {
28+
"size": ["variable.length", "variable.thickness"],
29+
"facing_camera_mode": "lookat_direction",
30+
"direction": {
31+
"mode": "custom",
32+
"custom_direction": ["variable.direction.x", "variable.direction.y", "variable.direction.z"]
33+
},
34+
"uv": {
35+
"texture_width": 16,
36+
"texture_height": 16,
37+
"uv": [0, 0],
38+
"uv_size": [16, 16]
39+
}
40+
},
41+
"minecraft:particle_appearance_tinting": {
42+
"color": ["variable.color.r", "variable.color.g", "variable.color.b", "variable.color.a"]
43+
},
44+
"minecraft:particle_appearance_lighting": {}
45+
}
46+
}
47+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
item.whynot:light=Light
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
item.whynot:light=Luz

resource_packs/whynot/textures/camino_recorra_tu_pasado.json renamed to resource_packs/whynot/textures/camino_recorra_tu_pasado/camino_recorra_tu_pasado.json

File renamed without changes.

resource_packs/whynot/textures/camino_recorra_tu_pasado.png renamed to resource_packs/whynot/textures/camino_recorra_tu_pasado/camino_recorra_tu_pasado.png

File renamed without changes.

0 commit comments

Comments
 (0)