Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse blocks.json at compile time #330

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
4bd56e6
const generic arrays
Nov 23, 2024
03b38b2
use static slices
Nov 23, 2024
b7ba990
fmt
Nov 23, 2024
e9d78d9
clippy
Nov 23, 2024
a5a47d0
clippy
Nov 23, 2024
1b3306b
move to pumpkin-data crate
Nov 23, 2024
c8c85d2
use build.rs and split data into more modules to improve compilation …
Nov 24, 2024
d197c1d
add benchmark + optimize getting blocks by name
Nov 24, 2024
f7563cb
Merge branch 'Snowiiii:master' into macro_experiment
user622628252416 Nov 24, 2024
ad6114a
fmt
Nov 24, 2024
579b200
Merge branch 'macro_experiment' of https://github.com/user62262825241…
user622628252416 Nov 24, 2024
07c663b
update extractor to split blocks into more files
user622628252416 Nov 24, 2024
13de921
add block state ids to blocks.json
user622628252416 Nov 24, 2024
e6f3b5c
tag problem
Nov 24, 2024
f9d8933
restore old tags.json
user622628252416 Nov 24, 2024
6e30874
restore old synced_registries.json
user622628252416 Nov 24, 2024
e57eb38
fix items
user622628252416 Nov 24, 2024
be9bd33
Merge remote-tracking branch 'origin/master' into macro_experiment
Dec 1, 2024
e0ac3fb
fix block state namespace
Dec 1, 2024
ffd6bda
optimize extractors
user622628252416 Dec 1, 2024
dba51c9
update extracted assets
Dec 1, 2024
0de6382
add documentation
user622628252416 Dec 1, 2024
75dc3b9
add block_state!, etc. macros
user622628252416 Dec 1, 2024
621a5f4
add documentation
user622628252416 Dec 1, 2024
e5cbe86
fix documentation
user622628252416 Dec 1, 2024
d56545e
fix block shape extractor
user622628252416 Dec 1, 2024
ed55e30
add tests and fix block shapes
user622628252416 Dec 1, 2024
490c82f
fmt
user622628252416 Dec 1, 2024
cdf2498
fix clippy
user622628252416 Dec 1, 2024
14e96fc
future proof block shape extractor
user622628252416 Dec 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
228 changes: 1 addition & 227 deletions assets/block_entities.json
Original file line number Diff line number Diff line change
@@ -1,227 +1 @@
[
{
"id": 0,
"ident": "minecraft:furnace",
"name": "furnace"
},
{
"id": 1,
"ident": "minecraft:chest",
"name": "chest"
},
{
"id": 2,
"ident": "minecraft:trapped_chest",
"name": "trapped_chest"
},
{
"id": 3,
"ident": "minecraft:ender_chest",
"name": "ender_chest"
},
{
"id": 4,
"ident": "minecraft:jukebox",
"name": "jukebox"
},
{
"id": 5,
"ident": "minecraft:dispenser",
"name": "dispenser"
},
{
"id": 6,
"ident": "minecraft:dropper",
"name": "dropper"
},
{
"id": 7,
"ident": "minecraft:sign",
"name": "sign"
},
{
"id": 8,
"ident": "minecraft:hanging_sign",
"name": "hanging_sign"
},
{
"id": 9,
"ident": "minecraft:mob_spawner",
"name": "mob_spawner"
},
{
"id": 10,
"ident": "minecraft:creaking_heart",
"name": "creaking_heart"
},
{
"id": 11,
"ident": "minecraft:piston",
"name": "piston"
},
{
"id": 12,
"ident": "minecraft:brewing_stand",
"name": "brewing_stand"
},
{
"id": 13,
"ident": "minecraft:enchanting_table",
"name": "enchanting_table"
},
{
"id": 14,
"ident": "minecraft:end_portal",
"name": "end_portal"
},
{
"id": 15,
"ident": "minecraft:beacon",
"name": "beacon"
},
{
"id": 16,
"ident": "minecraft:skull",
"name": "skull"
},
{
"id": 17,
"ident": "minecraft:daylight_detector",
"name": "daylight_detector"
},
{
"id": 18,
"ident": "minecraft:hopper",
"name": "hopper"
},
{
"id": 19,
"ident": "minecraft:comparator",
"name": "comparator"
},
{
"id": 20,
"ident": "minecraft:banner",
"name": "banner"
},
{
"id": 21,
"ident": "minecraft:structure_block",
"name": "structure_block"
},
{
"id": 22,
"ident": "minecraft:end_gateway",
"name": "end_gateway"
},
{
"id": 23,
"ident": "minecraft:command_block",
"name": "command_block"
},
{
"id": 24,
"ident": "minecraft:shulker_box",
"name": "shulker_box"
},
{
"id": 25,
"ident": "minecraft:bed",
"name": "bed"
},
{
"id": 26,
"ident": "minecraft:conduit",
"name": "conduit"
},
{
"id": 27,
"ident": "minecraft:barrel",
"name": "barrel"
},
{
"id": 28,
"ident": "minecraft:smoker",
"name": "smoker"
},
{
"id": 29,
"ident": "minecraft:blast_furnace",
"name": "blast_furnace"
},
{
"id": 30,
"ident": "minecraft:lectern",
"name": "lectern"
},
{
"id": 31,
"ident": "minecraft:bell",
"name": "bell"
},
{
"id": 32,
"ident": "minecraft:jigsaw",
"name": "jigsaw"
},
{
"id": 33,
"ident": "minecraft:campfire",
"name": "campfire"
},
{
"id": 34,
"ident": "minecraft:beehive",
"name": "beehive"
},
{
"id": 35,
"ident": "minecraft:sculk_sensor",
"name": "sculk_sensor"
},
{
"id": 36,
"ident": "minecraft:calibrated_sculk_sensor",
"name": "calibrated_sculk_sensor"
},
{
"id": 37,
"ident": "minecraft:sculk_catalyst",
"name": "sculk_catalyst"
},
{
"id": 38,
"ident": "minecraft:sculk_shrieker",
"name": "sculk_shrieker"
},
{
"id": 39,
"ident": "minecraft:chiseled_bookshelf",
"name": "chiseled_bookshelf"
},
{
"id": 40,
"ident": "minecraft:brushable_block",
"name": "brushable_block"
},
{
"id": 41,
"ident": "minecraft:decorated_pot",
"name": "decorated_pot"
},
{
"id": 42,
"ident": "minecraft:crafter",
"name": "crafter"
},
{
"id": 43,
"ident": "minecraft:trial_spawner",
"name": "trial_spawner"
},
{
"id": 44,
"ident": "minecraft:vault",
"name": "vault"
}
]
{"minecraft:furnace":0,"minecraft:chest":1,"minecraft:trapped_chest":2,"minecraft:ender_chest":3,"minecraft:jukebox":4,"minecraft:dispenser":5,"minecraft:dropper":6,"minecraft:sign":7,"minecraft:hanging_sign":8,"minecraft:mob_spawner":9,"minecraft:creaking_heart":10,"minecraft:piston":11,"minecraft:brewing_stand":12,"minecraft:enchanting_table":13,"minecraft:end_portal":14,"minecraft:beacon":15,"minecraft:skull":16,"minecraft:daylight_detector":17,"minecraft:hopper":18,"minecraft:comparator":19,"minecraft:banner":20,"minecraft:structure_block":21,"minecraft:end_gateway":22,"minecraft:command_block":23,"minecraft:shulker_box":24,"minecraft:bed":25,"minecraft:conduit":26,"minecraft:barrel":27,"minecraft:smoker":28,"minecraft:blast_furnace":29,"minecraft:lectern":30,"minecraft:bell":31,"minecraft:jigsaw":32,"minecraft:campfire":33,"minecraft:beehive":34,"minecraft:sculk_sensor":35,"minecraft:calibrated_sculk_sensor":36,"minecraft:sculk_catalyst":37,"minecraft:sculk_shrieker":38,"minecraft:chiseled_bookshelf":39,"minecraft:brushable_block":40,"minecraft:decorated_pot":41,"minecraft:crafter":42,"minecraft:trial_spawner":43,"minecraft:vault":44}
user622628252416 marked this conversation as resolved.
Show resolved Hide resolved
Loading