sapdon 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/doc/BlockAPI.md +145 -0
- package/doc/api.md +1 -1
- package/doc/hello_sapdon/a9aad643f5609da73404d1f7f35fd5d0.png +0 -0
- package/doc/hello_sapdon/sapdon/344/275/277/347/224/250/346/225/231/347/250/213.md +159 -0
- package/examples/guidebook/build.config +33 -0
- package/examples/guidebook/dev/guidebook_BP/items/sapdon_test_guidebook.json +19 -0
- package/examples/{masterball/dev/masterball_BP/masterball_BP_1_20_20 → guidebook/dev/guidebook_BP}/manifest.json +63 -59
- package/examples/guidebook/dev/guidebook_BP/scripts/custom_components/cropComponent.js +50 -0
- package/examples/guidebook/dev/guidebook_BP/scripts/custom_components/items/gui_book.js +37 -0
- package/examples/guidebook/dev/guidebook_BP/scripts/custom_components/registry.js +20 -0
- package/examples/guidebook/dev/guidebook_BP/scripts/index.js +3 -0
- package/examples/guidebook/dev/guidebook_RP/blocks.json +3 -0
- package/examples/guidebook/dev/guidebook_RP/manifest.json +44 -0
- package/examples/guidebook/dev/guidebook_RP/models/blocks/crop.geo.json +48 -0
- package/examples/{masterball/dev/masterball_RP/masterball_RP_1_20_20.zip → guidebook/dev/guidebook_RP/pack_icon.png} +0 -0
- package/examples/guidebook/dev/guidebook_RP/textures/blocks/test_log_oak.png +0 -0
- package/examples/guidebook/dev/guidebook_RP/textures/blocks/test_log_top.png +0 -0
- package/examples/guidebook/dev/guidebook_RP/textures/flipbook_textures.json +1 -0
- package/examples/guidebook/dev/guidebook_RP/textures/item_texture.json +9 -0
- package/examples/guidebook/dev/guidebook_RP/textures/items/masterball.png +0 -0
- package/examples/guidebook/dev/guidebook_RP/textures/terrain_texture.json +14 -0
- package/examples/guidebook/dev/guidebook_RP/ui/_ui_defs.json +6 -0
- package/examples/guidebook/dev/guidebook_RP/ui/guidebook.json +581 -0
- package/examples/guidebook/dev/guidebook_RP/ui/server_form.json +91 -0
- package/examples/guidebook/main.mjs +66 -0
- package/examples/guidebook/mod.info +7 -0
- package/examples/{masterball/dev/masterball_BP/masterball_BP_1_20_20.zip → guidebook/pack_icon.png} +0 -0
- package/examples/guidebook/res/models/blocks/crop.geo.json +48 -0
- package/examples/guidebook/res/textures/blocks/test_log_oak.png +0 -0
- package/examples/guidebook/res/textures/blocks/test_log_top.png +0 -0
- package/examples/guidebook/res/textures/items/masterball.png +0 -0
- package/examples/guidebook/scripts/custom_components/cropComponent.js +50 -0
- package/examples/guidebook/scripts/custom_components/items/gui_book.js +37 -0
- package/examples/guidebook/scripts/custom_components/registry.js +20 -0
- package/examples/guidebook/scripts/index.js +3 -0
- package/examples/hello_sapdon/build.config +29 -0
- package/examples/hello_sapdon/main.mjs +3 -0
- package/examples/hello_sapdon/mod.info +7 -0
- package/examples/hello_sapdon/pack_icon.png +0 -0
- package/examples/hello_sapdon/res/models/blocks/crop.geo.json +48 -0
- package/examples/hello_sapdon/res/textures/blocks/test_log_oak.png +0 -0
- package/examples/hello_sapdon/res/textures/blocks/test_log_top.png +0 -0
- package/examples/hello_sapdon/res/textures/items/masterball.png +0 -0
- package/examples/hello_sapdon/scripts/custom_components/cropComponent.js +50 -0
- package/examples/hello_sapdon/scripts/custom_components/items/gui_book.js +37 -0
- package/examples/hello_sapdon/scripts/custom_components/registry.js +25 -0
- package/examples/hello_sapdon/scripts/index.js +0 -0
- package/examples/masterball/build.config +1 -0
- package/examples/masterball/dev/masterball_1_20_30.mcaddon +0 -0
- package/examples/masterball/dev/masterball_BP/entities/sapdon_projectile_masterball.json +56 -55
- package/examples/masterball/dev/masterball_BP/manifest.json +59 -59
- package/examples/masterball/dev/masterball_BP/pack_icon.png +0 -0
- package/examples/masterball/dev/masterball_BP/recipes/masterball.json +25 -0
- package/examples/masterball/dev/masterball_BP_1_20_30.mcpack +0 -0
- package/examples/masterball/dev/masterball_RP/attachables/sapdon_caught_masterball.json +19 -0
- package/examples/masterball/dev/masterball_RP/manifest.json +43 -43
- package/examples/masterball/dev/masterball_RP/pack_icon.png +0 -0
- package/examples/masterball/dev/masterball_RP/textures/flipbook_textures.json +1 -0
- package/examples/masterball/dev/masterball_RP/ui/_ui_defs.json +3 -0
- package/examples/masterball/dev/masterball_RP_1_20_30.mcpack +0 -0
- package/examples/masterball/main.mjs +18 -1
- package/examples/masterball/pack_icon.png +0 -0
- package/examples/mob_chest/build.config +29 -0
- package/examples/mob_chest/dev/mob_chest_BP/blocks/mob_chest_chest.json +56 -0
- package/examples/mob_chest/dev/mob_chest_BP/entities/mob_chest_chest_entity.json +79 -0
- package/examples/mob_chest/dev/mob_chest_BP/manifest.json +64 -0
- package/examples/mob_chest/dev/mob_chest_BP/pack_icon.png +0 -0
- package/examples/mob_chest/dev/mob_chest_BP/scripts/custom_components/block/block_with_entity.js +46 -0
- package/examples/mob_chest/dev/mob_chest_BP/scripts/custom_components/block/cropComponent.js +50 -0
- package/examples/mob_chest/dev/mob_chest_BP/scripts/custom_components/items/gui_book.js +37 -0
- package/examples/mob_chest/dev/mob_chest_BP/scripts/custom_components/registry.js +25 -0
- package/examples/mob_chest/dev/mob_chest_BP/scripts/index.js +4 -0
- package/examples/mob_chest/dev/mob_chest_RP/animation_controllers/mob_chest.animation_controllers.json +30 -0
- package/examples/mob_chest/dev/mob_chest_RP/animations/animation_item.animation.json +34 -0
- package/examples/mob_chest/dev/mob_chest_RP/animations/large_item.animation.json +27 -0
- package/examples/mob_chest/dev/mob_chest_RP/animations/mob_chest.animation.json +64 -0
- package/examples/mob_chest/dev/mob_chest_RP/blocks.json +13 -0
- package/examples/mob_chest/dev/mob_chest_RP/entity/mob_chest_chest_entity.json +32 -0
- package/examples/mob_chest/dev/mob_chest_RP/manifest.json +44 -0
- package/examples/mob_chest/dev/mob_chest_RP/models/blocks/crop.geo.json +48 -0
- package/examples/mob_chest/dev/mob_chest_RP/models/blocks/cube.geo.json +35 -0
- package/examples/mob_chest/dev/mob_chest_RP/models/blocks/empty.geo.json +35 -0
- package/examples/mob_chest/dev/mob_chest_RP/models/entity/mob_chest.geo.json +98 -0
- package/examples/mob_chest/dev/mob_chest_RP/pack_icon.png +0 -0
- package/examples/mob_chest/dev/mob_chest_RP/textures/blocks/entity/double_normal.png +0 -0
- package/examples/mob_chest/dev/mob_chest_RP/textures/blocks/entity/none.png +0 -0
- package/examples/mob_chest/dev/mob_chest_RP/textures/blocks/entity/normal.png +0 -0
- package/examples/mob_chest/dev/mob_chest_RP/textures/blocks/test_log_oak.png +0 -0
- package/examples/mob_chest/dev/mob_chest_RP/textures/blocks/test_log_top.png +0 -0
- package/examples/mob_chest/dev/mob_chest_RP/textures/flipbook_textures.json +1 -0
- package/examples/mob_chest/dev/mob_chest_RP/textures/item_texture.json +9 -0
- package/examples/mob_chest/dev/mob_chest_RP/textures/items/masterball.png +0 -0
- package/examples/mob_chest/dev/mob_chest_RP/textures/terrain_texture.json +23 -0
- package/examples/mob_chest/dev/mob_chest_RP/ui/_ui_defs.json +3 -0
- package/examples/mob_chest/main.mjs +31 -0
- package/examples/mob_chest/mod.info +7 -0
- package/examples/mob_chest/pack_icon.png +0 -0
- package/examples/mob_chest/res/animation_controllers/mob_chest.animation_controllers.json +30 -0
- package/examples/mob_chest/res/animations/animation_item.animation.json +34 -0
- package/examples/mob_chest/res/animations/large_item.animation.json +27 -0
- package/examples/mob_chest/res/animations/mob_chest.animation.json +64 -0
- package/examples/mob_chest/res/models/blocks/crop.geo.json +48 -0
- package/examples/mob_chest/res/models/blocks/cube.geo.json +35 -0
- package/examples/mob_chest/res/models/blocks/empty.geo.json +35 -0
- package/examples/mob_chest/res/models/entity/mob_chest.geo.json +98 -0
- package/examples/mob_chest/res/textures/blocks/entity/double_normal.png +0 -0
- package/examples/mob_chest/res/textures/blocks/entity/none.png +0 -0
- package/examples/mob_chest/res/textures/blocks/entity/normal.png +0 -0
- package/examples/mob_chest/res/textures/blocks/test_log_oak.png +0 -0
- package/examples/mob_chest/res/textures/blocks/test_log_top.png +0 -0
- package/examples/mob_chest/res/textures/items/masterball.png +0 -0
- package/examples/mob_chest/resource/cube.bbmodel +1 -0
- package/examples/mob_chest/resource/flipbook_item.bbmodel +1 -0
- package/examples/mob_chest/resource/flipbook_item.geo.bbmodel +1 -0
- package/examples/mob_chest/resource/flipbook_item.geo.json +3124 -0
- package/examples/mob_chest/resource/mob_chest.bbmodel +1 -0
- package/examples/mob_chest/scripts/custom_components/block/block_with_entity.js +46 -0
- package/examples/mob_chest/scripts/custom_components/block/cropComponent.js +50 -0
- package/examples/mob_chest/scripts/custom_components/items/gui_book.js +37 -0
- package/examples/mob_chest/scripts/custom_components/registry.js +25 -0
- package/examples/mob_chest/scripts/index.js +4 -0
- package/examples/test/build.config +29 -0
- package/examples/test/dev/test_BP/blocks/sapdon_ore_cinnabar.json +15 -15
- package/examples/test/dev/test_BP/blocks/sapdon_test_block.json +15 -15
- package/examples/test/dev/test_BP/blocks/sapdon_test_crop.json +191 -191
- package/examples/test/dev/test_BP/blocks/sapdon_wire.json +102 -102
- package/examples/test/dev/test_BP/entities/sapdon_test_projectile.json +56 -55
- package/examples/test/dev/test_BP/feature_rules/ore_cinnabar_orefeatre_rule.json +52 -52
- package/examples/test/dev/test_BP/feature_rules/overworld_underground_titanite_ore_feature.json +52 -52
- package/examples/test/dev/test_BP/features/ore_cinnabar_ore_feature.json +16 -16
- package/examples/test/dev/test_BP/features/titanite_ore_feature.json +22 -22
- package/examples/test/dev/test_BP/items/sapdon_chest.json +22 -22
- package/examples/test/dev/test_BP/items/sapdon_test_book.json +19 -0
- package/examples/test/dev/test_BP/items/sapdon_test_food.json +25 -25
- package/examples/test/dev/test_BP/items/sapdon_test_item.json +30 -30
- package/examples/test/dev/test_BP/manifest.json +63 -59
- package/examples/test/dev/test_BP/recipes/sapdon_test_furnace.json +12 -12
- package/examples/test/dev/test_BP/scripts/custom_components/cropComponent.js +1 -10
- package/examples/test/dev/test_BP/scripts/custom_components/items/gui_book.js +37 -0
- package/examples/test/dev/test_BP/scripts/custom_components/registry.js +20 -0
- package/examples/test/dev/test_BP/scripts/index.js +4 -3
- package/examples/test/dev/test_RP/attachables/sapdon_chest.json +24 -24
- package/examples/test/dev/test_RP/blocks.json +42 -42
- package/examples/test/dev/test_RP/entity/sapdon_test_projectile.json +27 -27
- package/examples/test/dev/test_RP/manifest.json +43 -43
- package/examples/test/dev/test_RP/models/blocks/arcane_workbench.geo.json +105 -105
- package/examples/test/dev/test_RP/models/blocks/jar_normal.geo.json +46 -46
- package/examples/test/dev/test_RP/models/blocks/jar_normal_0.geo.json +58 -58
- package/examples/test/dev/test_RP/models/blocks/jar_normal_1.geo.json +58 -58
- package/examples/test/dev/test_RP/models/blocks/jar_normal_2.geo.json +58 -58
- package/examples/test/dev/test_RP/models/blocks/jar_normal_3.geo.json +58 -58
- package/examples/test/dev/test_RP/models/blocks/wire.geo.json +153 -153
- package/examples/test/dev/test_RP/textures/item_texture.json +788 -788
- package/examples/test/dev/test_RP/textures/items/seals/seal_breaker.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/seals/seal_butcher.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/seals/seal_empty.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/seals/seal_empty_advanced.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/seals/seal_fill.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/seals/seal_fill_advanced.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/seals/seal_guard.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/seals/seal_guard_advanced.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/seals/seal_harvest.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/seals/seal_lumber.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/seals/seal_pickup.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/seals/seal_pickup_advanced.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/seals/seal_provider.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/seals/seal_use.png.mcmeta +5 -5
- package/examples/test/dev/test_RP/textures/items/wand/cap_thaumium.png.mcmeta +11 -11
- package/examples/test/dev/test_RP/textures/items/wand/cap_void.png.mcmeta +11 -11
- package/examples/test/dev/test_RP/textures/items/wand/focus_pech.png.mcmeta +2 -2
- package/examples/test/dev/test_RP/textures/items/wand/focus_portablehole.png.mcmeta +2 -2
- package/examples/test/dev/test_RP/textures/items/wand/focus_primal.png.mcmeta +2 -2
- package/examples/test/dev/test_RP/textures/items/wand/focus_shard.png.mcmeta +2 -2
- package/examples/test/dev/test_RP/textures/items/wand/focus_warding.png.mcmeta +2 -2
- package/examples/test/dev/test_RP/textures/items/wand/rod_primal_mat.png.mcmeta +44 -44
- package/examples/test/dev/test_RP/textures/terrain_texture.json +136 -136
- package/examples/test/dev/test_RP/ui/_ui_defs.json +6 -0
- package/examples/test/dev/test_RP/ui/guidebook.json +446 -0
- package/examples/test/dev/test_RP/ui/server_form.json +91 -0
- package/examples/test/main.mjs +46 -1
- package/examples/test/res/models/blocks/arcane_workbench.geo.json +105 -105
- package/examples/test/res/models/blocks/jar_normal.geo.json +46 -46
- package/examples/test/res/models/blocks/jar_normal_0.geo.json +58 -58
- package/examples/test/res/models/blocks/jar_normal_1.geo.json +58 -58
- package/examples/test/res/models/blocks/jar_normal_2.geo.json +58 -58
- package/examples/test/res/models/blocks/jar_normal_3.geo.json +58 -58
- package/examples/test/res/models/blocks/wire.geo.json +153 -153
- package/examples/test/res/textures/items/seals/seal_breaker.png.mcmeta +5 -5
- package/examples/test/res/textures/items/seals/seal_butcher.png.mcmeta +5 -5
- package/examples/test/res/textures/items/seals/seal_empty.png.mcmeta +5 -5
- package/examples/test/res/textures/items/seals/seal_empty_advanced.png.mcmeta +5 -5
- package/examples/test/res/textures/items/seals/seal_fill.png.mcmeta +5 -5
- package/examples/test/res/textures/items/seals/seal_fill_advanced.png.mcmeta +5 -5
- package/examples/test/res/textures/items/seals/seal_guard.png.mcmeta +5 -5
- package/examples/test/res/textures/items/seals/seal_guard_advanced.png.mcmeta +5 -5
- package/examples/test/res/textures/items/seals/seal_harvest.png.mcmeta +5 -5
- package/examples/test/res/textures/items/seals/seal_lumber.png.mcmeta +5 -5
- package/examples/test/res/textures/items/seals/seal_pickup.png.mcmeta +5 -5
- package/examples/test/res/textures/items/seals/seal_pickup_advanced.png.mcmeta +5 -5
- package/examples/test/res/textures/items/seals/seal_provider.png.mcmeta +5 -5
- package/examples/test/res/textures/items/seals/seal_use.png.mcmeta +5 -5
- package/examples/test/res/textures/items/wand/cap_thaumium.png.mcmeta +11 -11
- package/examples/test/res/textures/items/wand/cap_void.png.mcmeta +11 -11
- package/examples/test/res/textures/items/wand/focus_pech.png.mcmeta +2 -2
- package/examples/test/res/textures/items/wand/focus_portablehole.png.mcmeta +2 -2
- package/examples/test/res/textures/items/wand/focus_primal.png.mcmeta +2 -2
- package/examples/test/res/textures/items/wand/focus_shard.png.mcmeta +2 -2
- package/examples/test/res/textures/items/wand/focus_warding.png.mcmeta +2 -2
- package/examples/test/res/textures/items/wand/rod_primal_mat.png.mcmeta +44 -44
- package/examples/test/scripts/custom_components/cropComponent.js +1 -10
- package/examples/test/scripts/custom_components/items/gui_book.js +37 -0
- package/examples/test/scripts/custom_components/registry.js +20 -0
- package/examples/test/scripts/index.js +4 -3
- package/log.md +8 -0
- package/package.json +4 -1
- package/src/cli/build.js +210 -210
- package/src/cli/load.js +116 -112
- package/src/cli/tools/textureSet.js +114 -114
- package/src/cli/utils.js +82 -82
- package/src/core/addon/controllers/animation_controller.js +80 -0
- package/src/core/addon/entity/entity.js +52 -51
- package/src/core/block/GeometryBlock.js +8 -0
- package/src/core/block/OreBlock.js +1 -0
- package/src/core/block/TileBlock.js +117 -0
- package/src/core/block/block.js +106 -106
- package/src/core/block/blockComponent.js +557 -557
- package/src/core/block/cropBlock.js +1 -1
- package/src/core/entity/BasicEntity.js +195 -166
- package/src/core/entity/bundles/BasicBundle.js +51 -0
- package/src/core/factory/BlockFactory.js +166 -158
- package/src/core/factory/EntityFactory.js +82 -82
- package/src/core/factory/ItemFactory.js +120 -95
- package/src/core/factory/RecipeFactory.js +46 -46
- package/src/core/index.js +2 -1
- package/src/core/item/Item.js +96 -96
- package/src/core/item/ItemComponents.js +251 -235
- package/src/core/item/armor.js +117 -89
- package/src/core/item/attachable.js +33 -33
- package/src/core/item/food.js +61 -61
- package/src/core/registry.js +16 -16
- package/src/core/ui/Properties/{Grid.js → GridProp.js} +2 -2
- package/src/core/ui/Properties/Sound.js +72 -0
- package/src/core/ui/elements/Button.js +111 -0
- package/src/core/ui/elements/CollectionPanel.js +61 -0
- package/src/core/ui/elements/Grid.js +24 -0
- package/src/core/ui/elements/Image.js +4 -0
- package/src/core/ui/elements/Label.js +10 -2
- package/src/core/ui/elements/Panel.js +7 -0
- package/src/core/ui/elements/ScrollingPanel.js +68 -0
- package/src/core/ui/elements/StackPanel.js +40 -0
- package/src/core/ui/elements/UIElement.js +43 -2
- package/src/core/ui/registry/UISystemRegistry.js +35 -0
- package/src/core/ui/systems/UISystem.js +9 -5
- package/src/core/ui/systems/guidebook.js +299 -0
- package/src/core/ui/systems/server_form.js +94 -83
- package/src/templates/test_sapdon/build.config +28 -28
- package/src/templates/test_sapdon/res/animations/animation_item.animation.json +34 -0
- package/src/templates/test_sapdon/res/animations/large_item.animation.json +27 -0
- package/src/templates/test_sapdon/res/models/entity/animation/animation_item.geo.json +26 -0
- package/src/templates/test_sapdon/res/models/entity/animation/large_item.geo.json +28 -0
- package/src/templates/test_sapdon/res/textures/blocks/none.png +0 -0
- package/src/templates/test_sapdon/scripts/custom_components/cropComponent.js +50 -0
- package/src/templates/test_sapdon/scripts/custom_components/items/gui_book.js +37 -0
- package/src/templates/test_sapdon/scripts/custom_components/registry.js +25 -0
- package/examples/masterball/dev/masterball[1.20.20+].mcaddon.zip +0 -0
- package/examples/masterball/dev/masterball_BP/masterball_BP_1_20_20/entities/sapdon_projectile_masterball.json +0 -56
- package/examples/masterball/dev/masterball_BP/masterball_BP_1_20_20/items/sapdon_caught_masterball.json +0 -32
- package/examples/masterball/dev/masterball_BP/masterball_BP_1_20_20/items/sapdon_uncaught_masterball.json +0 -31
- package/examples/masterball/dev/masterball_BP/masterball_BP_1_20_20/scripts/index.js +0 -159
- package/examples/test/dev/test_BP/biomes/test_biome.json +0 -48
- package/examples/test/dev/test_BP/blocks/sapdon_block.json +0 -111
- package/examples/test/dev/test_BP/entities/sapdon_body.json +0 -118
- package/examples/test/dev/test_BP/entities/sapdon_test_entity_ctrl1.json +0 -55
- package/examples/test/dev/test_BP/entities/sapdon_test_entity_ctrl2.json +0 -61
- package/examples/test/dev/test_BP/entities/sapdon_test_entity_header.json +0 -408
- package/examples/test/dev/test_RP/entity/sapdon_body.json +0 -44
- package/examples/test/dev/test_RP/entity/sapdon_test_entity_ctrl1.json +0 -38
- package/examples/test/dev/test_RP/entity/sapdon_test_entity_ctrl2.json +0 -38
- package/examples/test/dev/test_RP/entity/sapdon_test_entity_header.json +0 -44
- package/src/cli/build.config +0 -4
- package/src/core/ui/registry/ServerUISystem.js +0 -19
- /package/examples/{masterball/dev/masterball_BP/masterball_BP_1_20_20 → guidebook/dev/guidebook_BP}/pack_icon.png +0 -0
package/examples/mob_chest/dev/mob_chest_BP/scripts/custom_components/block/block_with_entity.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {EquipmentSlot, ItemStack, world } from "@minecraft/server";
|
|
2
|
+
|
|
3
|
+
const BlockEntities = {
|
|
4
|
+
"mob_chest:chest":"mob_chest:chest_entity",
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
/** @type {import("@minecraft/server").BlockCustomComponent} */
|
|
8
|
+
export const BlockWithEntityComponent = {
|
|
9
|
+
onPlace({block,dimension,previousBlock}) {
|
|
10
|
+
const place_position = {
|
|
11
|
+
x:block.center().x,
|
|
12
|
+
y:block.center().y -0.5,
|
|
13
|
+
z:block.center().z
|
|
14
|
+
};
|
|
15
|
+
const block_entity_typeId = BlockEntities[block.typeId];
|
|
16
|
+
world.sendMessage("block_entity:"+block_entity_typeId);
|
|
17
|
+
dimension.spawnEntity(block_entity_typeId,place_position);
|
|
18
|
+
|
|
19
|
+
const block_typeId = block.typeId;
|
|
20
|
+
switch(block_typeId){
|
|
21
|
+
case "mob_chest:chest":
|
|
22
|
+
block.setPermutation(block.permutation.withState("sapdon:block_or_entity",1));
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
onPlayerInteract({block,dimension,player,face,faceLocation}) {
|
|
27
|
+
world.sendMessage("interact");
|
|
28
|
+
const block_typeId = block.typeId;
|
|
29
|
+
const block_entity_typeId = BlockEntities[block_typeId];
|
|
30
|
+
switch(block_typeId){
|
|
31
|
+
case "mob_chest:chest":
|
|
32
|
+
const block_entity = dimension.getEntitiesAtBlockLocation(block.center())[0];
|
|
33
|
+
//获取属性
|
|
34
|
+
const chest_state = block_entity.getProperty("mob_chest:chest_state");
|
|
35
|
+
world.sendMessage("chest_state:"+chest_state);
|
|
36
|
+
if(chest_state === "open"){
|
|
37
|
+
//设置属性
|
|
38
|
+
block_entity.setProperty("mob_chest:chest_state","close");
|
|
39
|
+
}else{
|
|
40
|
+
//设置属性
|
|
41
|
+
block_entity.setProperty("mob_chest:chest_state","open");
|
|
42
|
+
}
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EquipmentSlot, GameMode, world } from "@minecraft/server";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @param {number} min The minimum integer
|
|
5
|
+
* @param {number} max The maximum integer
|
|
6
|
+
* @returns {number} A random integer between the `min` and `max` parameters (inclusive)
|
|
7
|
+
*/
|
|
8
|
+
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;
|
|
9
|
+
|
|
10
|
+
const maxGrowth = 3;
|
|
11
|
+
|
|
12
|
+
/** @type {import("@minecraft/server").BlockCustomComponent} */
|
|
13
|
+
export const CustomCropGrowthBlockComponent = {
|
|
14
|
+
onRandomTick({ block }) {
|
|
15
|
+
const growthChance = 1 / 3;
|
|
16
|
+
if (Math.random() > growthChance) return;
|
|
17
|
+
|
|
18
|
+
const growth = block.permutation.getState("sapdon:block_variant_tag");
|
|
19
|
+
block.setPermutation(block.permutation.withState("sapdon:block_variant_tag", growth + 1));
|
|
20
|
+
},
|
|
21
|
+
onPlayerInteract({ block, dimension, player }) {
|
|
22
|
+
if (!player) return;
|
|
23
|
+
|
|
24
|
+
const equippable = player.getComponent("minecraft:equippable");
|
|
25
|
+
if (!equippable) return;
|
|
26
|
+
|
|
27
|
+
const mainhand = equippable.getEquipmentSlot(EquipmentSlot.Mainhand);
|
|
28
|
+
if (!mainhand.hasItem() || mainhand.typeId !== "minecraft:bone_meal") return;
|
|
29
|
+
|
|
30
|
+
if (player.getGameMode() === GameMode.creative) {
|
|
31
|
+
// Grow crop fully
|
|
32
|
+
block.setPermutation(block.permutation.withState("sapdon:block_variant_tag", maxGrowth));
|
|
33
|
+
} else {
|
|
34
|
+
let growth = block.permutation.getState("sapdon:block_variant_tag");
|
|
35
|
+
|
|
36
|
+
// Add random amount of growth
|
|
37
|
+
growth += randomInt(1, maxGrowth - growth);
|
|
38
|
+
block.setPermutation(block.permutation.withState("sapdon:block_variant_tag", growth));
|
|
39
|
+
|
|
40
|
+
// Decrement stack
|
|
41
|
+
if (mainhand.amount > 1) mainhand.amount--;
|
|
42
|
+
else mainhand.setItem(undefined);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Play effects
|
|
46
|
+
const effectLocation = block.center();
|
|
47
|
+
dimension.playSound("item.bone_meal.use", effectLocation);
|
|
48
|
+
dimension.spawnParticle("minecraft:crop_growth_emitter", effectLocation);
|
|
49
|
+
},
|
|
50
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { world } from "@minecraft/server";
|
|
2
|
+
import { ActionFormData} from "@minecraft/server-ui";
|
|
3
|
+
|
|
4
|
+
const item_ui_list ={
|
|
5
|
+
"thaumcraft:thaumonomicon":"guidebook"
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
var page_index = 0;
|
|
9
|
+
/** @type {import("@minecraft/server").ItemCustomComponent} */
|
|
10
|
+
export const GuiBookItemComponent = {
|
|
11
|
+
onUse({itemStack,source}){
|
|
12
|
+
if(source.typeId != "minecraft:player") return
|
|
13
|
+
showGuidebook(source,item_ui_list[itemStack.typeId])
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function showGuidebook(target,ui){
|
|
18
|
+
const form = new ActionFormData()
|
|
19
|
+
.title(ui)
|
|
20
|
+
.body("page_index"+ page_index)
|
|
21
|
+
.button("test1")
|
|
22
|
+
.button("test2")
|
|
23
|
+
|
|
24
|
+
form.show(target).then((response) => {
|
|
25
|
+
if (response.selection === 0) {
|
|
26
|
+
page_index--;
|
|
27
|
+
world.sendMessage("上一页")
|
|
28
|
+
showGuidebook(target,ui)
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
else if (response.selection === 1) {
|
|
32
|
+
page_index++;
|
|
33
|
+
world.sendMessage("下一页")
|
|
34
|
+
showGuidebook(target,ui)
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
import { BlockWithEntityComponent } from "./block/block_with_entity.js";
|
|
3
|
+
import { CustomCropGrowthBlockComponent } from "./block/cropComponent.js";
|
|
4
|
+
import { GuiBookItemComponent } from "./items/gui_book.js";
|
|
5
|
+
import { world } from "@minecraft/server";
|
|
6
|
+
|
|
7
|
+
export const registerCustomItemComponent = ()=>{
|
|
8
|
+
world.beforeEvents.worldInitialize.subscribe(({ itemComponentRegistry }) => {
|
|
9
|
+
itemComponentRegistry.registerCustomComponent("sapdon:guibook",GuiBookItemComponent);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const registerCustomBlockComponent = ()=>{
|
|
14
|
+
world.beforeEvents.worldInitialize.subscribe(({ blockComponentRegistry }) => {
|
|
15
|
+
blockComponentRegistry.registerCustomComponent(
|
|
16
|
+
"sapdon:block_with_entity",
|
|
17
|
+
BlockWithEntityComponent
|
|
18
|
+
);
|
|
19
|
+
blockComponentRegistry.registerCustomComponent(
|
|
20
|
+
"sapdon:crop_growth",
|
|
21
|
+
CustomCropGrowthBlockComponent
|
|
22
|
+
);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format_version": "1.19.0",
|
|
3
|
+
"animation_controllers": {
|
|
4
|
+
"controller.animation.mob_chest.interact": {
|
|
5
|
+
"initial_state": "default",
|
|
6
|
+
"states": {
|
|
7
|
+
"default": {
|
|
8
|
+
"animations": ["default"],
|
|
9
|
+
"transitions": [
|
|
10
|
+
{"open": "q.property('mob_chest:chest_state') == 'open'"}
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"open": {
|
|
14
|
+
"animations": ["open"],
|
|
15
|
+
"transitions": [
|
|
16
|
+
{"close": "query.any_animation_finished && q.property('mob_chest:chest_state') == 'close'"}
|
|
17
|
+
],
|
|
18
|
+
"blend_transition": 0.1
|
|
19
|
+
},
|
|
20
|
+
"close": {
|
|
21
|
+
"animations": ["close"],
|
|
22
|
+
"transitions": [
|
|
23
|
+
{"default": "query.all_animations_finished && q.property('mob_chest:chest_state') == 'close'"}
|
|
24
|
+
],
|
|
25
|
+
"blend_transition": 0.1
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format_version": "1.8.0",
|
|
3
|
+
"animations": {
|
|
4
|
+
"animation.animation_item.default": {
|
|
5
|
+
"loop": true,
|
|
6
|
+
"bones": {
|
|
7
|
+
"body": {
|
|
8
|
+
"position": [0, 8, 0]
|
|
9
|
+
},
|
|
10
|
+
"rightitem": {
|
|
11
|
+
"rotation": [-80, 0, 0],
|
|
12
|
+
"position": [0, -3, 2]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"animation.animation_item.rotating": {
|
|
17
|
+
"loop": true,
|
|
18
|
+
"animation_length": 10,
|
|
19
|
+
"bones": {
|
|
20
|
+
"body": {
|
|
21
|
+
"rotation": {
|
|
22
|
+
"0.0": [0, 0, 0],
|
|
23
|
+
"10.0": [0, 360, 0]
|
|
24
|
+
},
|
|
25
|
+
"position": [0, 8, 0]
|
|
26
|
+
},
|
|
27
|
+
"rightitem": {
|
|
28
|
+
"rotation": [-80, 0, 0],
|
|
29
|
+
"position": [0, -3, 2]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format_version": "1.10.0",
|
|
3
|
+
"animations": {
|
|
4
|
+
"animation.large_item.hold": {
|
|
5
|
+
"loop": true,
|
|
6
|
+
"bones": {
|
|
7
|
+
"rightitem": {
|
|
8
|
+
"position": [
|
|
9
|
+
"c.is_first_person ? -6 : 1",
|
|
10
|
+
"c.is_first_person ? 0 : -1",
|
|
11
|
+
"c.is_first_person ? -1 : -6"
|
|
12
|
+
],
|
|
13
|
+
"rotation": [
|
|
14
|
+
"c.is_first_person ? 45 : 15",
|
|
15
|
+
"c.is_first_person ? -15 : 0",
|
|
16
|
+
"c.is_first_person ? 30 : -165"
|
|
17
|
+
],
|
|
18
|
+
"scale": [
|
|
19
|
+
"c.is_first_person ? 1 : 0.5",
|
|
20
|
+
"c.is_first_person ? 1 : 0.5",
|
|
21
|
+
"c.is_first_person ? 1 : 0.5"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format_version": "1.8.0",
|
|
3
|
+
"animations": {
|
|
4
|
+
"animation.mob_chest.open": {
|
|
5
|
+
"loop": "hold_on_last_frame",
|
|
6
|
+
"animation_length": 0.5,
|
|
7
|
+
"bones": {
|
|
8
|
+
"top": {
|
|
9
|
+
"rotation": {
|
|
10
|
+
"0.0": [0, 0, 0],
|
|
11
|
+
"0.0417": [-2.82138, 0, 0],
|
|
12
|
+
"0.0833": [-8.44537, 0, 0],
|
|
13
|
+
"0.125": [-15.301, 0, 0],
|
|
14
|
+
"0.1667": [-22.82036, 0, 0],
|
|
15
|
+
"0.2083": [-30.70332, 0, 0],
|
|
16
|
+
"0.2917": [-46.79668, 0, 0],
|
|
17
|
+
"0.3333": [-54.67964, 0, 0],
|
|
18
|
+
"0.375": [-62.199, 0, 0],
|
|
19
|
+
"0.4167": [-69.05463, 0, 0],
|
|
20
|
+
"0.4583": [-74.67862, 0, 0],
|
|
21
|
+
"0.5": [-77.5, 0, 0]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"animation.mob_chest.default": {
|
|
27
|
+
"loop": true
|
|
28
|
+
},
|
|
29
|
+
"animation.mob_chest.close": {
|
|
30
|
+
"loop": "hold_on_last_frame",
|
|
31
|
+
"animation_length": 0.5,
|
|
32
|
+
"bones": {
|
|
33
|
+
"top": {
|
|
34
|
+
"rotation": {
|
|
35
|
+
"0.0": [-77.5, 0, 0],
|
|
36
|
+
"0.0417": [-74.67862, 0, 0],
|
|
37
|
+
"0.0833": [-69.05463, 0, 0],
|
|
38
|
+
"0.125": [-62.199, 0, 0],
|
|
39
|
+
"0.1667": [-54.67964, 0, 0],
|
|
40
|
+
"0.2083": [-46.79668, 0, 0],
|
|
41
|
+
"0.2917": [-30.70332, 0, 0],
|
|
42
|
+
"0.3333": [-22.82036, 0, 0],
|
|
43
|
+
"0.375": [-15.301, 0, 0],
|
|
44
|
+
"0.4167": [-8.44537, 0, 0],
|
|
45
|
+
"0.4583": [-2.82138, 0, 0],
|
|
46
|
+
"0.5": [0, 0, 0]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"animation.mob_chest.spawn": {
|
|
52
|
+
"loop": "hold_on_last_frame",
|
|
53
|
+
"animation_length": 1,
|
|
54
|
+
"bones": {
|
|
55
|
+
"chest": {
|
|
56
|
+
"scale": {
|
|
57
|
+
"0.0": [0.3, 0.3, 0.3],
|
|
58
|
+
"1.0": [1, 1, 1]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format_version": "1.20.20",
|
|
3
|
+
"mob_chest:chest": {
|
|
4
|
+
"textures": {
|
|
5
|
+
"up": "textures/blocks/entity/normal",
|
|
6
|
+
"down": "textures/blocks/entity/normal",
|
|
7
|
+
"east": "textures/blocks/entity/normal",
|
|
8
|
+
"west": "textures/blocks/entity/normal",
|
|
9
|
+
"south": "textures/blocks/entity/normal",
|
|
10
|
+
"north": "textures/blocks/entity/normal"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format_version": "1.10.0",
|
|
3
|
+
"minecraft:client_entity": {
|
|
4
|
+
"description": {
|
|
5
|
+
"identifier": "mob_chest:chest_entity",
|
|
6
|
+
"textures": {
|
|
7
|
+
"default": "textures/blocks/entity/normal"
|
|
8
|
+
},
|
|
9
|
+
"materials": {
|
|
10
|
+
"default": "entity_alphatest"
|
|
11
|
+
},
|
|
12
|
+
"geometry": {
|
|
13
|
+
"default": "geometry.mob_chest"
|
|
14
|
+
},
|
|
15
|
+
"render_controllers": [
|
|
16
|
+
"controller.render.cow",
|
|
17
|
+
"controller.render.cow"
|
|
18
|
+
],
|
|
19
|
+
"animations": {
|
|
20
|
+
"default": "animation.mob_chest.default",
|
|
21
|
+
"open": "animation.mob_chest.open",
|
|
22
|
+
"close": "animation.mob_chest.close",
|
|
23
|
+
"interact_controller": "controller.animation.mob_chest.interact"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"animate": [
|
|
27
|
+
"interact_controller"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format_version": 2,
|
|
3
|
+
"header": {
|
|
4
|
+
"name": "mob_chest_RP",
|
|
5
|
+
"description": "生物箱子",
|
|
6
|
+
"version": [
|
|
7
|
+
1,
|
|
8
|
+
0,
|
|
9
|
+
0
|
|
10
|
+
],
|
|
11
|
+
"uuid": "2685d920-810e-4e3a-ac85-e2f774263518",
|
|
12
|
+
"min_engine_version": [
|
|
13
|
+
1,
|
|
14
|
+
19,
|
|
15
|
+
50
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"modules": [
|
|
19
|
+
{
|
|
20
|
+
"description": "资源模块",
|
|
21
|
+
"type": "resources",
|
|
22
|
+
"uuid": "2e18435c-8a2f-4590-a41b-65ba2d905e27",
|
|
23
|
+
"version": [
|
|
24
|
+
1,
|
|
25
|
+
0,
|
|
26
|
+
0
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"dependencies": [],
|
|
31
|
+
"metadata": {
|
|
32
|
+
"authors": [
|
|
33
|
+
"@sapdon"
|
|
34
|
+
],
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"generated_with": {
|
|
37
|
+
"sapdon": [
|
|
38
|
+
"2.0.1"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"product_type": "addon",
|
|
42
|
+
"url": "https://github.com/Meteage/sapdon"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format_version": "1.21.20",
|
|
3
|
+
"minecraft:geometry": [
|
|
4
|
+
{
|
|
5
|
+
"description": {
|
|
6
|
+
"identifier": "geometry.crop",
|
|
7
|
+
"texture_width": 16,
|
|
8
|
+
"texture_height": 16
|
|
9
|
+
},
|
|
10
|
+
"bones": [
|
|
11
|
+
{
|
|
12
|
+
"name": "crop",
|
|
13
|
+
"pivot": [0, 0, 0],
|
|
14
|
+
"cubes": [
|
|
15
|
+
{
|
|
16
|
+
"origin": [-8, -1, -4],
|
|
17
|
+
"size": [16, 16, 0],
|
|
18
|
+
"uv": {
|
|
19
|
+
"south": { "uv": [0, 0], "uv_size": [16, 16] }
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"origin": [-8, -1, 4],
|
|
24
|
+
"size": [16, 16, 0],
|
|
25
|
+
"uv": {
|
|
26
|
+
"north": { "uv": [0, 0], "uv_size": [16, 16] }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"origin": [4, -1, -8],
|
|
31
|
+
"size": [0, 16, 16],
|
|
32
|
+
"uv": {
|
|
33
|
+
"east": { "uv": [16, 0], "uv_size": [-16, 16] }
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"origin": [-4, -1, -8],
|
|
38
|
+
"size": [0, 16, 16],
|
|
39
|
+
"uv": {
|
|
40
|
+
"west": { "uv": [16, 0], "uv_size": [-16, 16] }
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format_version": "1.21.20",
|
|
3
|
+
"minecraft:geometry": [
|
|
4
|
+
{
|
|
5
|
+
"description": {
|
|
6
|
+
"identifier": "geometry.cube",
|
|
7
|
+
"texture_width": 16,
|
|
8
|
+
"texture_height": 16,
|
|
9
|
+
"visible_bounds_width": 2,
|
|
10
|
+
"visible_bounds_height": 2.5,
|
|
11
|
+
"visible_bounds_offset": [0, 0.75, 0]
|
|
12
|
+
},
|
|
13
|
+
"bones": [
|
|
14
|
+
{
|
|
15
|
+
"name": "cube",
|
|
16
|
+
"pivot": [0, 0, 0],
|
|
17
|
+
"cubes": [
|
|
18
|
+
{
|
|
19
|
+
"origin": [-8, 0, -8],
|
|
20
|
+
"size": [16, 16, 16],
|
|
21
|
+
"uv": {
|
|
22
|
+
"north": {"uv": [0, 0], "uv_size": [16, 16]},
|
|
23
|
+
"east": {"uv": [0, 0], "uv_size": [16, 16]},
|
|
24
|
+
"south": {"uv": [0, 0], "uv_size": [16, 16]},
|
|
25
|
+
"west": {"uv": [0, 0], "uv_size": [16, 16]},
|
|
26
|
+
"up": {"uv": [16, 16], "uv_size": [-16, -16]},
|
|
27
|
+
"down": {"uv": [16, 16], "uv_size": [-16, -16]}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format_version": "1.12.0",
|
|
3
|
+
"minecraft:geometry": [
|
|
4
|
+
{
|
|
5
|
+
"description": {
|
|
6
|
+
"identifier": "geometry.empty",
|
|
7
|
+
"texture_width": 16,
|
|
8
|
+
"texture_height": 16,
|
|
9
|
+
"visible_bounds_width": 2,
|
|
10
|
+
"visible_bounds_height": 1.5,
|
|
11
|
+
"visible_bounds_offset": [0, 0.25, 0]
|
|
12
|
+
},
|
|
13
|
+
"bones": [
|
|
14
|
+
{
|
|
15
|
+
"name": "none",
|
|
16
|
+
"pivot": [0, 0, 0],
|
|
17
|
+
"cubes": [
|
|
18
|
+
{
|
|
19
|
+
"origin": [-1, 0, -1],
|
|
20
|
+
"size": [2, 2, 2],
|
|
21
|
+
"uv": {
|
|
22
|
+
"north": {"uv": [0, 0], "uv_size": [2, 2]},
|
|
23
|
+
"east": {"uv": [0, 0], "uv_size": [2, 2]},
|
|
24
|
+
"south": {"uv": [0, 0], "uv_size": [2, 2]},
|
|
25
|
+
"west": {"uv": [0, 0], "uv_size": [2, 2]},
|
|
26
|
+
"up": {"uv": [2, 2], "uv_size": [-2, -2]},
|
|
27
|
+
"down": {"uv": [2, 2], "uv_size": [-2, -2]}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format_version": "1.21.20",
|
|
3
|
+
"minecraft:geometry": [
|
|
4
|
+
{
|
|
5
|
+
"description": {
|
|
6
|
+
"identifier": "geometry.mob_chest",
|
|
7
|
+
"texture_width": 64,
|
|
8
|
+
"texture_height": 64,
|
|
9
|
+
"visible_bounds_width": 3,
|
|
10
|
+
"visible_bounds_height": 3.5,
|
|
11
|
+
"visible_bounds_offset": [0, 1.25, 0]
|
|
12
|
+
},
|
|
13
|
+
"bones": [
|
|
14
|
+
{
|
|
15
|
+
"name": "chest",
|
|
16
|
+
"pivot": [0, 0, 0],
|
|
17
|
+
"rotation": [0, 180, 0]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "bottom",
|
|
21
|
+
"parent": "chest",
|
|
22
|
+
"pivot": [0, 5, 0],
|
|
23
|
+
"cubes": [
|
|
24
|
+
{
|
|
25
|
+
"origin": [-7, 0, -7],
|
|
26
|
+
"size": [14, 10, 14],
|
|
27
|
+
"uv": {
|
|
28
|
+
"north": {"uv": [14, 33], "uv_size": [14, 10]},
|
|
29
|
+
"east": {"uv": [0, 33], "uv_size": [14, 10]},
|
|
30
|
+
"south": {"uv": [42, 33], "uv_size": [14, 10]},
|
|
31
|
+
"west": {"uv": [28, 33], "uv_size": [14, 10]},
|
|
32
|
+
"up": {"uv": [14, 19], "uv_size": [14, 14]},
|
|
33
|
+
"down": {"uv": [28, 33], "uv_size": [14, -14]}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "top",
|
|
40
|
+
"parent": "chest",
|
|
41
|
+
"pivot": [0, 10.5, 7],
|
|
42
|
+
"cubes": [
|
|
43
|
+
{
|
|
44
|
+
"origin": [-7, 10, -7],
|
|
45
|
+
"size": [14, 5, 14],
|
|
46
|
+
"uv": {
|
|
47
|
+
"north": {"uv": [14, 14], "uv_size": [14, 5]},
|
|
48
|
+
"east": {"uv": [0, 14], "uv_size": [14, 5]},
|
|
49
|
+
"south": {"uv": [42, 14], "uv_size": [14, 5]},
|
|
50
|
+
"west": {"uv": [28, 14], "uv_size": [14, 5]},
|
|
51
|
+
"up": {"uv": [14, 0], "uv_size": [14, 14]},
|
|
52
|
+
"down": {"uv": [28, 14], "uv_size": [14, -14]}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "lock",
|
|
59
|
+
"parent": "top",
|
|
60
|
+
"pivot": [0, 10, -7.5],
|
|
61
|
+
"cubes": [
|
|
62
|
+
{
|
|
63
|
+
"origin": [-1, 8, -8],
|
|
64
|
+
"size": [2, 4, 1],
|
|
65
|
+
"uv": {
|
|
66
|
+
"north": {"uv": [1, 1], "uv_size": [2, 4]},
|
|
67
|
+
"east": {"uv": [0, 1], "uv_size": [1, 4]},
|
|
68
|
+
"south": {"uv": [4, 1], "uv_size": [2, 4]},
|
|
69
|
+
"west": {"uv": [3, 1], "uv_size": [1, 4]},
|
|
70
|
+
"up": {"uv": [1, 0], "uv_size": [2, 1]},
|
|
71
|
+
"down": {"uv": [3, 1], "uv_size": [2, -1]}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "interact",
|
|
78
|
+
"parent": "chest",
|
|
79
|
+
"pivot": [-0.05, 8.05, 0.05],
|
|
80
|
+
"cubes": [
|
|
81
|
+
{
|
|
82
|
+
"origin": [-8.1, 0, -8],
|
|
83
|
+
"size": [16.1, 16.1, 16.1],
|
|
84
|
+
"uv": {
|
|
85
|
+
"north": {"uv": [16, 48], "uv_size": [16, 16]},
|
|
86
|
+
"east": {"uv": [0, 48], "uv_size": [16, 16]},
|
|
87
|
+
"south": {"uv": [48, 48], "uv_size": [16, 16]},
|
|
88
|
+
"west": {"uv": [32, 48], "uv_size": [16, 16]},
|
|
89
|
+
"up": {"uv": [0, 48], "uv_size": [16, 16]},
|
|
90
|
+
"down": {"uv": [0, 64], "uv_size": [16, -16]}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|