Skip to content

Commit

Permalink
Fix datagen for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Electro593 committed Mar 2, 2025
1 parent bbf66b0 commit fb00936
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 53 deletions.
94 changes: 47 additions & 47 deletions src/main/generated/assets/spectrum/blockstates/block_detector.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,103 +5,103 @@
"x": 90,
"y": 90
},
"orientation=down_east,triggered=true": {
"model": "spectrum:block/block_detector_active",
"x": 90,
"y": 90
},
"orientation=down_north,triggered=false": {
"model": "spectrum:block/block_detector",
"x": 90
},
"orientation=down_north,triggered=true": {
"model": "spectrum:block/block_detector_active",
"x": 90
},
"orientation=down_south,triggered=false": {
"model": "spectrum:block/block_detector",
"x": 90,
"y": 180
},
"orientation=down_west,triggered=false": {
"model": "spectrum:block/block_detector",
"orientation=down_south,triggered=true": {
"model": "spectrum:block/block_detector_active",
"x": 90,
"y": 270
},
"orientation=east_up,triggered=false": {
"model": "spectrum:block/block_detector",
"y": 90
},
"orientation=north_up,triggered=false": {
"model": "spectrum:block/block_detector"
},
"orientation=south_up,triggered=false": {
"model": "spectrum:block/block_detector",
"y": 180
},
"orientation=up_east,triggered=false": {
"model": "spectrum:block/block_detector",
"x": 270,
"y": 270
},
"orientation=up_north,triggered=false": {
"model": "spectrum:block/block_detector",
"x": 270,
"y": 180
},
"orientation=up_south,triggered=false": {
"model": "spectrum:block/block_detector",
"x": 270
},
"orientation=up_west,triggered=false": {
"model": "spectrum:block/block_detector",
"x": 270,
"y": 90
},
"orientation=west_up,triggered=false": {
"orientation=down_west,triggered=false": {
"model": "spectrum:block/block_detector",
"y": 270
},
"orientation=down_east,triggered=true": {
"model": "spectrum:block/block_detector_active",
"x": 90,
"y": 90
},
"orientation=down_north,triggered=true": {
"model": "spectrum:block/block_detector_active",
"x": 90
},
"orientation=down_south,triggered=true": {
"model": "spectrum:block/block_detector_active",
"x": 90,
"y": 180
"y": 270
},
"orientation=down_west,triggered=true": {
"model": "spectrum:block/block_detector_active",
"x": 90,
"y": 270
},
"orientation=east_up,triggered=false": {
"model": "spectrum:block/block_detector",
"y": 90
},
"orientation=east_up,triggered=true": {
"model": "spectrum:block/block_detector_active",
"y": 90
},
"orientation=north_up,triggered=false": {
"model": "spectrum:block/block_detector"
},
"orientation=north_up,triggered=true": {
"model": "spectrum:block/block_detector_active"
},
"orientation=south_up,triggered=false": {
"model": "spectrum:block/block_detector",
"y": 180
},
"orientation=south_up,triggered=true": {
"model": "spectrum:block/block_detector_active",
"y": 180
},
"orientation=up_east,triggered=false": {
"model": "spectrum:block/block_detector",
"x": 270,
"y": 270
},
"orientation=up_east,triggered=true": {
"model": "spectrum:block/block_detector_active",
"x": 270,
"y": 270
},
"orientation=up_north,triggered=false": {
"model": "spectrum:block/block_detector",
"x": 270,
"y": 180
},
"orientation=up_north,triggered=true": {
"model": "spectrum:block/block_detector_active",
"x": 270,
"y": 180
},
"orientation=up_south,triggered=false": {
"model": "spectrum:block/block_detector",
"x": 270
},
"orientation=up_south,triggered=true": {
"model": "spectrum:block/block_detector_active",
"x": 270
},
"orientation=up_west,triggered=false": {
"model": "spectrum:block/block_detector",
"x": 270,
"y": 90
},
"orientation=up_west,triggered=true": {
"model": "spectrum:block/block_detector_active",
"x": 270,
"y": 90
},
"orientation=west_up,triggered=false": {
"model": "spectrum:block/block_detector",
"y": 270
},
"orientation=west_up,triggered=true": {
"model": "spectrum:block/block_detector_active",
"y": 270
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "spectrum:item/pure_azurite"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "spectrum:item/pure_bloodstone"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "spectrum:item/pure_malachite"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public Builder includeDefaultState() {
}

public DropSelfResonanceProcessor build() {
return new DropSelfResonanceProcessor(blockTarget, nbtToCopy, statePropertiesToCopy, includeDefaultStateProperties);
return new DropSelfResonanceProcessor(blockTarget, statePropertiesToCopy, nbtToCopy, includeDefaultStateProperties);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1627,8 +1627,8 @@ public static ColoredSporeBlossomBlock registerColoredSporeBlossomBlock(String n
public static ShimmerstoneLightBlock registerShimmerstoneLight(String name, BlockSoundGroup soundGroup, Supplier<Identifier> outerSupplier) {
return register(blockWithItem(name, new ShimmerstoneLightBlock(settings(MapColor.CLEAR, soundGroup, 1.0F).nonOpaque().requiresTool().luminance(state -> 15).pistonBehavior(PistonBehavior.DESTROY)), InkColors.YELLOW).withBlockModel((ctx, block) -> {
Identifier outer = outerSupplier.get();
Identifier base = SpectrumModels.BASE_FLAT_LIGHT.upload(block, SpectrumTextureMaps.innerOuterParticle(SpectrumTextures.SHIMMERSTONE_LIGHT, outer, outer), ctx.modelCollector);
Identifier mirrored = SpectrumModels.BASE_FLAT_LIGHT_MIRRORED.upload(block, "_mirrored", SpectrumTextureMaps.innerOuterParticle(SpectrumTextures.SHIMMERSTONE_LIGHT, outer, outer), ctx.modelCollector);
Identifier base = SpectrumModels.SHIMMERSTONE_LIGHT.upload(block, SpectrumTextureMaps.innerOuterParticle(SpectrumTextures.SHIMMERSTONE_LIGHT, outer, outer), ctx.modelCollector);
Identifier mirrored = SpectrumModels.SHIMMERSTONE_LIGHT_MIRRORED.upload(block, "_mirrored", SpectrumTextureMaps.innerOuterParticle(SpectrumTextures.SHIMMERSTONE_LIGHT, outer, outer), ctx.modelCollector);
return VariantsBlockStateSupplier.create(block).coordinate(createNorthDefaultFacingVariantMap()).coordinate(createBooleanModelMap(Properties.INVERTED, mirrored, base));
}));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
import static net.minecraft.data.client.TextureKey.*;

public class SpectrumModels {

// Item Templates
public static final Model CLUSTER_ITEM = new Model(Optional.of(SpectrumCommon.locate("templates_item/cluster")), Optional.empty(), LAYER0);
public static final Model LARGE_BUD_ITEM = new Model(Optional.of(SpectrumCommon.locate("templates_item/large_bud")), Optional.empty(), LAYER0);
public static final Model MEDIUM_BUD_ITEM = new Model(Optional.of(SpectrumCommon.locate("templates_item/medium_bud")), Optional.empty(), LAYER0);
public static final Model SMALL_BUD_ITEM = new Model(Optional.of(SpectrumCommon.locate("templates_item/small_bud")), Optional.empty(), LAYER0);

// Vanilla Items

public static final Identifier SKULL_ITEM = Identifier.ofVanilla("item/template_skull");

// Block Templates
public static final Model BASE_FLAT_LIGHT = new Model(Optional.of(SpectrumCommon.locate("templates/base_flat_light")), Optional.empty(), INNER, OUTER, PARTICLE);
public static final Model BASE_FLAT_LIGHT_MIRRORED = new Model(Optional.of(SpectrumCommon.locate("templates/base_flat_light_mirrored")), Optional.empty(), INNER, OUTER, PARTICLE);
public static final Model SHIMMERSTONE_LIGHT = new Model(Optional.of(SpectrumCommon.locate("templates/shimmerstone_light")), Optional.empty(), INNER, OUTER, PARTICLE);
public static final Model SHIMMERSTONE_LIGHT_MIRRORED = new Model(Optional.of(SpectrumCommon.locate("templates/shimmerstone_light_mirrored")), Optional.empty(), INNER, OUTER, PARTICLE);
public static final Model BASE_PYLON_BODY = new Model(Optional.of(SpectrumCommon.locate("templates/base_pylon_body")), Optional.empty(), SIDE, END);
public static final Model BASE_TRANS_LIGHT_CORE = new Model(Optional.of(SpectrumCommon.locate("templates/base_trans_light_core")), Optional.empty(), GLASS, CASE, BASE, ENDS, SHELL, FILAMENT);
public static final Model BOWL = new Model(Optional.of(SpectrumCommon.locate("templates/base_bowl")), Optional.empty(), SIDE, TOP, BOTTOM, INNER);
Expand Down

0 comments on commit fb00936

Please sign in to comment.