mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-23 17:09:19 +00:00
添加紫水晶火把配置
This commit is contained in:
@@ -76,10 +76,10 @@ public final class BukkitCustomBlock extends AbstractCustomBlock {
|
||||
try {
|
||||
for (ImmutableBlockState immutableBlockState : variantProvider().states()) {
|
||||
if (immutableBlockState.vanillaBlockState() == null) {
|
||||
CraftEngine.instance().logger().warn("Could not find vanilla block immutableBlockState for " + immutableBlockState + ". This might cause errors!");
|
||||
CraftEngine.instance().logger().warn("Could not find vanilla visual block state for " + immutableBlockState + ". This might cause errors!");
|
||||
continue;
|
||||
} else if (immutableBlockState.customBlockState() == null) {
|
||||
CraftEngine.instance().logger().warn("Could not find custom block immutableBlockState for " + immutableBlockState + ". This might cause errors!");
|
||||
CraftEngine.instance().logger().warn("Could not find real block state for " + immutableBlockState + ". This might cause errors!");
|
||||
continue;
|
||||
}
|
||||
DelegatingBlockState nmsState = (DelegatingBlockState) immutableBlockState.customBlockState().literalObject();
|
||||
|
||||
@@ -13,7 +13,6 @@ import net.momirealms.craftengine.bukkit.nms.FastNMS;
|
||||
import net.momirealms.craftengine.bukkit.plugin.BukkitCraftEngine;
|
||||
import net.momirealms.craftengine.bukkit.plugin.gui.CraftEngineGUIHolder;
|
||||
import net.momirealms.craftengine.bukkit.plugin.network.payload.DiscardedPayload;
|
||||
import net.momirealms.craftengine.bukkit.plugin.reflection.bukkit.CraftBukkitReflections;
|
||||
import net.momirealms.craftengine.bukkit.plugin.reflection.minecraft.CoreReflections;
|
||||
import net.momirealms.craftengine.bukkit.plugin.reflection.minecraft.MAttributeHolders;
|
||||
import net.momirealms.craftengine.bukkit.plugin.reflection.minecraft.MMobEffects;
|
||||
|
||||
@@ -83,3 +83,5 @@ minecraft:crimson_fence_gate: 16
|
||||
minecraft:warped_fence_gate: 16
|
||||
minecraft:barrier: 128
|
||||
minecraft:white_bed: 1
|
||||
minecraft:redstone_torch: 1
|
||||
minecraft:redstone_wall_torch: 4
|
||||
@@ -0,0 +1,143 @@
|
||||
items:
|
||||
default:amethyst_torch:
|
||||
material: nether_brick
|
||||
custom-model-data: 3019
|
||||
data:
|
||||
item-name: <!i><i18n:item.amethyst_torch>
|
||||
model:
|
||||
type: minecraft:model
|
||||
path: minecraft:item/custom/amethyst_torch
|
||||
generation:
|
||||
parent: minecraft:item/generated
|
||||
textures:
|
||||
layer0: minecraft:block/custom/amethyst_torch
|
||||
behavior:
|
||||
- type: block_item
|
||||
block: default:amethyst_wall_torch
|
||||
- type: block_item
|
||||
block: default:amethyst_torch
|
||||
default:amethyst_standing_torch:
|
||||
material: nether_brick
|
||||
custom-model-data: 3020
|
||||
data:
|
||||
item-name: <!i><i18n:item.amethyst_torch>
|
||||
model:
|
||||
type: minecraft:model
|
||||
path: minecraft:block/custom/amethyst_torch
|
||||
generation:
|
||||
parent: minecraft:block/template_torch
|
||||
textures:
|
||||
torch: minecraft:block/custom/amethyst_torch
|
||||
default:amethyst_wall_torch:
|
||||
material: nether_brick
|
||||
custom-model-data: 3021
|
||||
data:
|
||||
item-name: <!i><i18n:item.amethyst_torch>
|
||||
model:
|
||||
type: minecraft:model
|
||||
path: minecraft:block/custom/amethyst_wall_torch
|
||||
generation:
|
||||
parent: minecraft:block/template_torch_wall
|
||||
textures:
|
||||
torch: minecraft:block/custom/amethyst_torch
|
||||
blocks:
|
||||
default:amethyst_torch:
|
||||
loot:
|
||||
template: default:loot_table/basic
|
||||
arguments:
|
||||
item: default:amethyst_torch
|
||||
settings:
|
||||
template:
|
||||
- default:sound/wood
|
||||
- default:hardness/none
|
||||
overrides:
|
||||
push-reaction: destroy
|
||||
replaceable: false
|
||||
map-color: 24
|
||||
luminance: 15
|
||||
item: default:amethyst_torch
|
||||
state:
|
||||
id: 0
|
||||
state: redstone_torch[lit=false]
|
||||
entity-renderer:
|
||||
item: default:amethyst_standing_torch
|
||||
scale: 1.01
|
||||
behavior:
|
||||
type: sturdy_base_block
|
||||
direction: down
|
||||
support-types:
|
||||
- center
|
||||
default:amethyst_wall_torch:
|
||||
loot:
|
||||
template: default:loot_table/basic
|
||||
arguments:
|
||||
item: default:amethyst_torch
|
||||
settings:
|
||||
template:
|
||||
- default:sound/wood
|
||||
- default:hardness/none
|
||||
overrides:
|
||||
push-reaction: destroy
|
||||
replaceable: false
|
||||
map-color: 24
|
||||
luminance: 15
|
||||
item: default:amethyst_torch
|
||||
behavior:
|
||||
type: directional_attached_block
|
||||
states:
|
||||
properties:
|
||||
facing:
|
||||
type: horizontal_direction
|
||||
appearances:
|
||||
north:
|
||||
state: redstone_wall_torch[facing=north,lit=false]
|
||||
entity-renderer:
|
||||
item: default:amethyst_wall_torch
|
||||
scale: 1.04
|
||||
yaw: 90
|
||||
translation: -0.02,0.01,0
|
||||
east:
|
||||
state: redstone_wall_torch[facing=east,lit=false]
|
||||
entity-renderer:
|
||||
item: default:amethyst_wall_torch
|
||||
scale: 1.04
|
||||
yaw: 180
|
||||
translation: -0.02,0.01,0
|
||||
west:
|
||||
state: redstone_wall_torch[facing=west,lit=false]
|
||||
entity-renderer:
|
||||
item: default:amethyst_wall_torch
|
||||
scale: 1.04
|
||||
translation: -0.02,0.01,0
|
||||
south:
|
||||
state: redstone_wall_torch[facing=south,lit=false]
|
||||
entity-renderer:
|
||||
item: default:amethyst_wall_torch
|
||||
scale: 1.04
|
||||
yaw: -90
|
||||
translation: -0.02,0.01,0
|
||||
variants:
|
||||
facing=north:
|
||||
appearance: north
|
||||
id: 0
|
||||
facing=east:
|
||||
appearance: east
|
||||
id: 1
|
||||
facing=west:
|
||||
appearance: west
|
||||
id: 2
|
||||
facing=south:
|
||||
appearance: south
|
||||
id: 3
|
||||
recipes:
|
||||
default:amethyst_torch:
|
||||
type: shaped
|
||||
pattern:
|
||||
- 'A'
|
||||
- 'B'
|
||||
ingredients:
|
||||
A: minecraft:amethyst_shard
|
||||
B: minecraft:stick
|
||||
result:
|
||||
id: default:amethyst_torch
|
||||
count: 1
|
||||
@@ -78,3 +78,4 @@ categories:
|
||||
- default:bench
|
||||
- default:wooden_chair
|
||||
- default:flower_basket
|
||||
- default:amethyst_torch
|
||||
@@ -48,6 +48,7 @@ i18n:
|
||||
item.chessboard_block: Chessboard Block
|
||||
item.safe_block: Safe Block
|
||||
item.sofa: Sofa
|
||||
item.amethyst_torch: Amethyst Torch
|
||||
category.default.name: Default Assets
|
||||
category.default.lore: Contains the default configuration of CraftEngine
|
||||
category.palm_tree: Palm Tree
|
||||
@@ -105,6 +106,7 @@ i18n:
|
||||
item.chessboard_block: 棋盘方块
|
||||
item.safe_block: 保险柜
|
||||
item.sofa: 沙发
|
||||
item.amethyst_torch: 紫水晶火把
|
||||
category.default.name: 默认资产
|
||||
category.default.lore: 包含了CraftEngine的默认配置
|
||||
category.palm_tree: 棕榈树
|
||||
@@ -145,6 +147,8 @@ lang:
|
||||
block_name:default:safe_block: Safe Block
|
||||
block_name:default:sleeper_sofa: Sofa
|
||||
block_name:default:sofa: Sofa
|
||||
block_name:default:amethyst_torch: Amethyst Torch
|
||||
block_name:default:amethyst_wall_torch: Amethyst Torch
|
||||
zh_cn:
|
||||
block_name:default:chinese_lantern: 灯笼
|
||||
block_name:default:netherite_anvil: 下界合金砧
|
||||
@@ -173,3 +177,5 @@ lang:
|
||||
block_name:default:safe_block: 保险柜
|
||||
block_name:default:sleeper_sofa: 沙发
|
||||
block_name:default:sofa: 沙发
|
||||
block_name:default:amethyst_torch: 紫水晶火把
|
||||
block_name:default:amethyst_wall_torch: 紫水晶火把
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 220 B |
@@ -430,6 +430,7 @@ public abstract class AbstractPackManager implements PackManager {
|
||||
plugin.saveResource("resources/default/configuration/blocks/table_lamp.yml");
|
||||
plugin.saveResource("resources/default/configuration/blocks/topaz_ore.yml");
|
||||
plugin.saveResource("resources/default/configuration/blocks/netherite_anvil.yml");
|
||||
plugin.saveResource("resources/default/configuration/blocks/amethyst_torch.yml");
|
||||
// assets
|
||||
plugin.saveResource("resources/default/resourcepack/assets/minecraft/textures/font/image/emojis.png");
|
||||
plugin.saveResource("resources/default/resourcepack/assets/minecraft/textures/block/custom/chinese_lantern.png");
|
||||
@@ -506,6 +507,7 @@ public abstract class AbstractPackManager implements PackManager {
|
||||
plugin.saveResource("resources/default/resourcepack/assets/minecraft/textures/block/custom/fairy_flower_3.png");
|
||||
plugin.saveResource("resources/default/resourcepack/assets/minecraft/textures/block/custom/fairy_flower_4.png");
|
||||
plugin.saveResource("resources/default/resourcepack/assets/minecraft/textures/block/custom/reed.png");
|
||||
plugin.saveResource("resources/default/resourcepack/assets/minecraft/textures/block/custom/amethyst_torch.png");
|
||||
plugin.saveResource("resources/default/resourcepack/assets/minecraft/textures/block/custom/flame_cane_1.png");
|
||||
plugin.saveResource("resources/default/resourcepack/assets/minecraft/textures/block/custom/flame_cane_2.png");
|
||||
plugin.saveResource("resources/default/resourcepack/assets/minecraft/textures/block/custom/ender_pearl_flower_stage_0.png");
|
||||
|
||||
Reference in New Issue
Block a user