Compare commits

...

2 commits

Author SHA1 Message Date
Mrbysco
d8ad92c447 Fix Empowered Emeradic Crystal requiring tall grass (Fixes #1410) 2024-10-17 18:39:43 +02:00
Mrbysco
a6a9467dd1 Fix Tiny Toch placement (Fixes #1409) 2024-10-17 18:35:11 +02:00
5 changed files with 9 additions and 9 deletions

View file

@ -1,8 +1,8 @@
// 1.21.1 2024-08-11T19:30:01.8188184 Empowering Recipes // 1.21.1 2024-10-17T18:39:09.6349717 Empowering Recipes
cc9c78901a2ac70dc5efa029684edac7376c68e2 data/actuallyadditions/recipe/empowering/diamatine.json cc9c78901a2ac70dc5efa029684edac7376c68e2 data/actuallyadditions/recipe/empowering/diamatine.json
0ee7498f9720da718f2904bfb2826f48592629e7 data/actuallyadditions/recipe/empowering/diamatine_block.json 0ee7498f9720da718f2904bfb2826f48592629e7 data/actuallyadditions/recipe/empowering/diamatine_block.json
13ba258b2c645ab14d879cc923d452080e099932 data/actuallyadditions/recipe/empowering/emeradic.json 09c7ef6ae8c1690e9b0b3bf323951005335a172f data/actuallyadditions/recipe/empowering/emeradic.json
65fce5dc254d68e83c66a6b80ae37cb9acd71d3d data/actuallyadditions/recipe/empowering/emeradic_block.json f79081a34b05b6e44b9b543b0e1710ef57f65314 data/actuallyadditions/recipe/empowering/emeradic_block.json
ada12731cdb55ceea84eaca71b71c3e484d4399d data/actuallyadditions/recipe/empowering/empowered_canola.json ada12731cdb55ceea84eaca71b71c3e484d4399d data/actuallyadditions/recipe/empowering/empowered_canola.json
439b7d2abae8901e62dc8e39d0a539fac5db01cf data/actuallyadditions/recipe/empowering/enori.json 439b7d2abae8901e62dc8e39d0a539fac5db01cf data/actuallyadditions/recipe/empowering/enori.json
f26b6d17245059f52fbdb3a2fb2f0d2cc94a416b data/actuallyadditions/recipe/empowering/enori_block.json f26b6d17245059f52fbdb3a2fb2f0d2cc94a416b data/actuallyadditions/recipe/empowering/enori_block.json

View file

@ -10,7 +10,7 @@
"tag": "c:dyes/lime" "tag": "c:dyes/lime"
}, },
{ {
"item": "minecraft:tall_grass" "item": "minecraft:short_grass"
}, },
{ {
"tag": "minecraft:saplings" "tag": "minecraft:saplings"

View file

@ -10,7 +10,7 @@
"tag": "c:dyes/lime" "tag": "c:dyes/lime"
}, },
{ {
"item": "minecraft:tall_grass" "item": "minecraft:short_grass"
}, },
{ {
"tag": "minecraft:saplings" "tag": "minecraft:saplings"

View file

@ -95,12 +95,12 @@ public class EmpoweringRecipeGenerator extends RecipeProvider {
EmpoweringBuilder.builder(ActuallyItems.EMPOWERED_EMERADIC_CRYSTAL.get(), ActuallyItems.EMERADIC_CRYSTAL.get(), 5000, 50, Crystals.EMERALD.conversionColorParticles) EmpoweringBuilder.builder(ActuallyItems.EMPOWERED_EMERADIC_CRYSTAL.get(), ActuallyItems.EMERADIC_CRYSTAL.get(), 5000, 50, Crystals.EMERALD.conversionColorParticles)
.addModifier(Tags.Items.DYES_LIME) .addModifier(Tags.Items.DYES_LIME)
.addModifier(Items.TALL_GRASS) .addModifier(Items.SHORT_GRASS)
.addModifier(ItemTags.SAPLINGS) .addModifier(ItemTags.SAPLINGS)
.addModifier(Tags.Items.SLIMEBALLS).save(recipeOutput, "emeradic"); .addModifier(Tags.Items.SLIMEBALLS).save(recipeOutput, "emeradic");
EmpoweringBuilder.builder(ActuallyBlocks.EMPOWERED_EMERADIC_CRYSTAL.get(), ActuallyBlocks.EMERADIC_CRYSTAL.get(), 50000, 500, Crystals.EMERALD.conversionColorParticles) EmpoweringBuilder.builder(ActuallyBlocks.EMPOWERED_EMERADIC_CRYSTAL.get(), ActuallyBlocks.EMERADIC_CRYSTAL.get(), 50000, 500, Crystals.EMERALD.conversionColorParticles)
.addModifier(Tags.Items.DYES_LIME) .addModifier(Tags.Items.DYES_LIME)
.addModifier(Items.TALL_GRASS) .addModifier(Items.SHORT_GRASS)
.addModifier(ItemTags.SAPLINGS) .addModifier(ItemTags.SAPLINGS)
.addModifier(Tags.Items.SLIMEBALLS).save(recipeOutput, "emeradic_block"); .addModifier(Tags.Items.SLIMEBALLS).save(recipeOutput, "emeradic_block");

View file

@ -34,7 +34,7 @@ import net.minecraft.world.phys.shapes.VoxelShape;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
public class BlockTinyTorch extends BlockBase { public class BlockTinyTorch extends BlockBase {
public static final DirectionProperty FACING = DirectionProperty.create("facing", Direction.NORTH, Direction.EAST, Direction.SOUTH, Direction.WEST, Direction.UP); public static final DirectionProperty FACING = DirectionProperty.create("facing", direction -> direction != Direction.DOWN);
public BlockTinyTorch() { public BlockTinyTorch() {
super(Properties.of().pushReaction(PushReaction.DESTROY).sound(SoundType.WOOD).strength(0.0F, 0.8F)); super(Properties.of().pushReaction(PushReaction.DESTROY).sound(SoundType.WOOD).strength(0.0F, 0.8F));
@ -90,7 +90,7 @@ public class BlockTinyTorch extends BlockBase {
Direction facing = context.getClickedFace(); Direction facing = context.getClickedFace();
BlockPos pos = context.getClickedPos(); BlockPos pos = context.getClickedPos();
if (this.canSurvive(state, levelreader, pos)) { if (this.canSurvive(state, levelreader, pos)) {
return state.setValue(BlockTinyTorch.FACING, facing); return state.setValue(BlockTinyTorch.FACING, facing.getAxis() == Direction.Axis.Y ? Direction.UP : facing);
} else { } else {
Direction[] adirection = context.getNearestLookingDirections(); Direction[] adirection = context.getNearestLookingDirections();
for(Direction direction : adirection) { for(Direction direction : adirection) {