This commit is contained in:
nimsolated
2026-03-28 19:42:27 -07:00
parent b8dbadcda0
commit 4b658a0cce
414 changed files with 12957 additions and 234 deletions

View File

@@ -0,0 +1,28 @@
package net.mcreator.arisrandomadditions.block;
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
import net.minecraft.world.level.block.state.properties.BlockSetType;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.ButtonBlock;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.core.Direction;
import net.minecraft.core.BlockPos;
public class AnaheimButtonBlock extends ButtonBlock {
public AnaheimButtonBlock() {
super(BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(2f, 3f).dynamicShape(), BlockSetType.OAK, 30, true);
}
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 0;
}
@Override
public int getFlammability(BlockState state, BlockGetter world, BlockPos pos, Direction face) {
return 5;
}
}

View File

@@ -0,0 +1,27 @@
package net.mcreator.arisrandomadditions.block;
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.FenceBlock;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.core.Direction;
import net.minecraft.core.BlockPos;
public class AnaheimFenceBlock extends FenceBlock {
public AnaheimFenceBlock() {
super(BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(2f, 3f).dynamicShape().forceSolidOn());
}
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 0;
}
@Override
public int getFlammability(BlockState state, BlockGetter world, BlockPos pos, Direction face) {
return 5;
}
}

View File

@@ -0,0 +1,28 @@
package net.mcreator.arisrandomadditions.block;
import net.minecraft.world.level.block.state.properties.WoodType;
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.FenceGateBlock;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.core.Direction;
import net.minecraft.core.BlockPos;
public class AnaheimFenceGateBlock extends FenceGateBlock {
public AnaheimFenceGateBlock() {
super(BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(2f, 3f).dynamicShape().forceSolidOn(), WoodType.OAK);
}
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 0;
}
@Override
public int getFlammability(BlockState state, BlockGetter world, BlockPos pos, Direction face) {
return 5;
}
}

View File

@@ -0,0 +1,26 @@
package net.mcreator.arisrandomadditions.block;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.LeavesBlock;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.core.Direction;
import net.minecraft.core.BlockPos;
public class AnaheimLeavesBlock extends LeavesBlock {
public AnaheimLeavesBlock() {
super(BlockBehaviour.Properties.of().ignitedByLava().sound(SoundType.GRASS).strength(0.2f).noOcclusion());
}
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 1;
}
@Override
public int getFlammability(BlockState state, BlockGetter world, BlockPos pos, Direction face) {
return 30;
}
}

View File

@@ -0,0 +1,58 @@
package net.mcreator.arisrandomadditions.block;
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
import net.minecraft.world.level.block.state.properties.EnumProperty;
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
import net.minecraft.world.level.block.state.StateDefinition;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.Rotation;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.item.context.BlockPlaceContext;
import net.minecraft.core.Direction;
import net.minecraft.core.BlockPos;
public class AnaheimLogBlock extends Block {
public static final EnumProperty<Direction.Axis> AXIS = BlockStateProperties.AXIS;
public AnaheimLogBlock() {
super(BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(2f));
this.registerDefaultState(this.stateDefinition.any().setValue(AXIS, Direction.Axis.Y));
}
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 15;
}
@Override
protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> builder) {
super.createBlockStateDefinition(builder);
builder.add(AXIS);
}
@Override
public BlockState getStateForPlacement(BlockPlaceContext context) {
return super.getStateForPlacement(context).setValue(AXIS, context.getClickedFace().getAxis());
}
@Override
public BlockState rotate(BlockState state, Rotation rot) {
if (rot == Rotation.CLOCKWISE_90 || rot == Rotation.COUNTERCLOCKWISE_90) {
if (state.getValue(AXIS) == Direction.Axis.X) {
return state.setValue(AXIS, Direction.Axis.Z);
} else if (state.getValue(AXIS) == Direction.Axis.Z) {
return state.setValue(AXIS, Direction.Axis.X);
}
}
return state;
}
@Override
public int getFlammability(BlockState state, BlockGetter world, BlockPos pos, Direction face) {
return 5;
}
}

View File

@@ -0,0 +1,27 @@
package net.mcreator.arisrandomadditions.block;
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.core.Direction;
import net.minecraft.core.BlockPos;
public class AnaheimPlanksBlock extends Block {
public AnaheimPlanksBlock() {
super(BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(2f, 3f));
}
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 15;
}
@Override
public int getFlammability(BlockState state, BlockGetter world, BlockPos pos, Direction face) {
return 5;
}
}

View File

@@ -0,0 +1,28 @@
package net.mcreator.arisrandomadditions.block;
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
import net.minecraft.world.level.block.state.properties.BlockSetType;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.PressurePlateBlock;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.core.Direction;
import net.minecraft.core.BlockPos;
public class AnaheimPressurePlateBlock extends PressurePlateBlock {
public AnaheimPressurePlateBlock() {
super(Sensitivity.EVERYTHING, BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(2f, 3f).dynamicShape().forceSolidOn(), BlockSetType.OAK);
}
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 0;
}
@Override
public int getFlammability(BlockState state, BlockGetter world, BlockPos pos, Direction face) {
return 5;
}
}

View File

@@ -0,0 +1,27 @@
package net.mcreator.arisrandomadditions.block;
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.SlabBlock;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.core.Direction;
import net.minecraft.core.BlockPos;
public class AnaheimSlabBlock extends SlabBlock {
public AnaheimSlabBlock() {
super(BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(2f, 3f).dynamicShape());
}
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 0;
}
@Override
public int getFlammability(BlockState state, BlockGetter world, BlockPos pos, Direction face) {
return 5;
}
}

View File

@@ -0,0 +1,38 @@
package net.mcreator.arisrandomadditions.block;
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.StairBlock;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.core.Direction;
import net.minecraft.core.BlockPos;
public class AnaheimStairsBlock extends StairBlock {
public AnaheimStairsBlock() {
super(() -> Blocks.AIR.defaultBlockState(), BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(3f, 2f).dynamicShape());
}
@Override
public float getExplosionResistance() {
return 2f;
}
@Override
public boolean isRandomlyTicking(BlockState state) {
return false;
}
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 0;
}
@Override
public int getFlammability(BlockState state, BlockGetter world, BlockPos pos, Direction face) {
return 5;
}
}

View File

@@ -0,0 +1,58 @@
package net.mcreator.arisrandomadditions.block;
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
import net.minecraft.world.level.block.state.properties.EnumProperty;
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
import net.minecraft.world.level.block.state.StateDefinition;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.Rotation;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.item.context.BlockPlaceContext;
import net.minecraft.core.Direction;
import net.minecraft.core.BlockPos;
public class AnaheimWoodBlock extends Block {
public static final EnumProperty<Direction.Axis> AXIS = BlockStateProperties.AXIS;
public AnaheimWoodBlock() {
super(BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(2f));
this.registerDefaultState(this.stateDefinition.any().setValue(AXIS, Direction.Axis.Y));
}
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 15;
}
@Override
protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> builder) {
super.createBlockStateDefinition(builder);
builder.add(AXIS);
}
@Override
public BlockState getStateForPlacement(BlockPlaceContext context) {
return super.getStateForPlacement(context).setValue(AXIS, context.getClickedFace().getAxis());
}
@Override
public BlockState rotate(BlockState state, Rotation rot) {
if (rot == Rotation.CLOCKWISE_90 || rot == Rotation.COUNTERCLOCKWISE_90) {
if (state.getValue(AXIS) == Direction.Axis.X) {
return state.setValue(AXIS, Direction.Axis.Z);
} else if (state.getValue(AXIS) == Direction.Axis.Z) {
return state.setValue(AXIS, Direction.Axis.X);
}
}
return state;
}
@Override
public int getFlammability(BlockState state, BlockGetter world, BlockPos pos, Direction face) {
return 5;
}
}

View File

@@ -0,0 +1,20 @@
package net.mcreator.arisrandomadditions.block;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.core.BlockPos;
public class BlackIronBlockBlock extends Block {
public BlackIronBlockBlock() {
super(BlockBehaviour.Properties.of().sound(SoundType.METAL).strength(5f, 6f).requiresCorrectToolForDrops());
}
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 15;
}
}

View File

@@ -0,0 +1,152 @@
package net.mcreator.arisrandomadditions.block;
import org.checkerframework.checker.units.qual.s;
import net.minecraftforge.network.NetworkHooks;
import net.minecraft.world.phys.shapes.VoxelShape;
import net.minecraft.world.phys.shapes.CollisionContext;
import net.minecraft.world.phys.BlockHitResult;
import net.minecraft.world.level.block.state.properties.IntegerProperty;
import net.minecraft.world.level.block.state.StateDefinition;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.EntityBlock;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.inventory.AbstractContainerMenu;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.MenuProvider;
import net.minecraft.world.InteractionResult;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.Containers;
import net.minecraft.util.RandomSource;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.network.chat.Component;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.core.BlockPos;
import net.mcreator.arisrandomadditions.world.inventory.NetherPowerGeneratorGUIMenu;
import net.mcreator.arisrandomadditions.procedures.NetherPowerGeneratorOnTickUpdateProcedure;
import net.mcreator.arisrandomadditions.block.entity.NetherPowerGeneratorBlockEntity;
import io.netty.buffer.Unpooled;
public class NetherPowerGeneratorBlock extends Block implements EntityBlock {
public static final IntegerProperty BLOCKSTATE = IntegerProperty.create("blockstate", 0, 3);
public NetherPowerGeneratorBlock() {
super(BlockBehaviour.Properties.of().sound(SoundType.METAL).strength(5f, 6f).lightLevel(s -> (new Object() {
public int getLightLevel() {
if (s.getValue(BLOCKSTATE) == 1)
return 0;
if (s.getValue(BLOCKSTATE) == 2)
return 0;
if (s.getValue(BLOCKSTATE) == 3)
return 0;
return 0;
}
}.getLightLevel())));
}
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 15;
}
@Override
public VoxelShape getShape(BlockState state, BlockGetter world, BlockPos pos, CollisionContext context) {
return box(0, 0, 0, 16, 16, 16);
}
@Override
protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> builder) {
super.createBlockStateDefinition(builder);
builder.add(BLOCKSTATE);
}
@Override
public void onPlace(BlockState blockstate, Level world, BlockPos pos, BlockState oldState, boolean moving) {
super.onPlace(blockstate, world, pos, oldState, moving);
world.scheduleTick(pos, this, 20);
}
@Override
public void tick(BlockState blockstate, ServerLevel world, BlockPos pos, RandomSource random) {
super.tick(blockstate, world, pos, random);
int x = pos.getX();
int y = pos.getY();
int z = pos.getZ();
NetherPowerGeneratorOnTickUpdateProcedure.execute(world, x, y, z);
world.scheduleTick(pos, this, 20);
}
@Override
public InteractionResult use(BlockState blockstate, Level world, BlockPos pos, Player entity, InteractionHand hand, BlockHitResult hit) {
super.use(blockstate, world, pos, entity, hand, hit);
if (entity instanceof ServerPlayer player) {
NetworkHooks.openScreen(player, new MenuProvider() {
@Override
public Component getDisplayName() {
return Component.literal("Nether Power Generator");
}
@Override
public AbstractContainerMenu createMenu(int id, Inventory inventory, Player player) {
return new NetherPowerGeneratorGUIMenu(id, inventory, new FriendlyByteBuf(Unpooled.buffer()).writeBlockPos(pos));
}
}, pos);
}
return InteractionResult.SUCCESS;
}
@Override
public MenuProvider getMenuProvider(BlockState state, Level worldIn, BlockPos pos) {
BlockEntity tileEntity = worldIn.getBlockEntity(pos);
return tileEntity instanceof MenuProvider menuProvider ? menuProvider : null;
}
@Override
public BlockEntity newBlockEntity(BlockPos pos, BlockState state) {
return new NetherPowerGeneratorBlockEntity(pos, state);
}
@Override
public boolean triggerEvent(BlockState state, Level world, BlockPos pos, int eventID, int eventParam) {
super.triggerEvent(state, world, pos, eventID, eventParam);
BlockEntity blockEntity = world.getBlockEntity(pos);
return blockEntity == null ? false : blockEntity.triggerEvent(eventID, eventParam);
}
@Override
public void onRemove(BlockState state, Level world, BlockPos pos, BlockState newState, boolean isMoving) {
if (state.getBlock() != newState.getBlock()) {
BlockEntity blockEntity = world.getBlockEntity(pos);
if (blockEntity instanceof NetherPowerGeneratorBlockEntity be) {
Containers.dropContents(world, pos, be);
world.updateNeighbourForOutputSignal(pos, this);
}
super.onRemove(state, world, pos, newState, isMoving);
}
}
@Override
public boolean hasAnalogOutputSignal(BlockState state) {
return true;
}
@Override
public int getAnalogOutputSignal(BlockState blockState, Level world, BlockPos pos) {
BlockEntity tileentity = world.getBlockEntity(pos);
if (tileentity instanceof NetherPowerGeneratorBlockEntity be)
return AbstractContainerMenu.getRedstoneSignalFromContainer(be);
else
return 0;
}
}

View File

@@ -26,7 +26,7 @@ public class SodaMachineBlock extends Block {
public static final DirectionProperty FACING = HorizontalDirectionalBlock.FACING;
public SodaMachineBlock() {
super(BlockBehaviour.Properties.of().sound(SoundType.METAL).strength(1f, 10f));
super(BlockBehaviour.Properties.of().sound(SoundType.METAL).strength(5f, 6f).requiresCorrectToolForDrops());
this.registerDefaultState(this.stateDefinition.any().setValue(FACING, Direction.NORTH));
}

View File

@@ -0,0 +1,146 @@
package net.mcreator.arisrandomadditions.block;
import net.minecraftforge.network.NetworkHooks;
import net.minecraft.world.phys.shapes.VoxelShape;
import net.minecraft.world.phys.shapes.Shapes;
import net.minecraft.world.phys.shapes.CollisionContext;
import net.minecraft.world.phys.BlockHitResult;
import net.minecraft.world.level.block.state.properties.DirectionProperty;
import net.minecraft.world.level.block.state.StateDefinition;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.Rotation;
import net.minecraft.world.level.block.Mirror;
import net.minecraft.world.level.block.HorizontalDirectionalBlock;
import net.minecraft.world.level.block.EntityBlock;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.item.context.BlockPlaceContext;
import net.minecraft.world.inventory.AbstractContainerMenu;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.MenuProvider;
import net.minecraft.world.InteractionResult;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.Containers;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.network.chat.Component;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.core.Direction;
import net.minecraft.core.BlockPos;
import net.mcreator.arisrandomadditions.world.inventory.StarAssemblyTableGUIMenu;
import net.mcreator.arisrandomadditions.block.entity.StarAssemblyTableBlockEntity;
import io.netty.buffer.Unpooled;
public class StarAssemblyTableBlock extends Block implements EntityBlock {
public static final DirectionProperty FACING = HorizontalDirectionalBlock.FACING;
public StarAssemblyTableBlock() {
super(BlockBehaviour.Properties.of().sound(SoundType.METAL).strength(5f, 6f).noOcclusion().isRedstoneConductor((bs, br, bp) -> false));
this.registerDefaultState(this.stateDefinition.any().setValue(FACING, Direction.NORTH));
}
@Override
public boolean propagatesSkylightDown(BlockState state, BlockGetter reader, BlockPos pos) {
return true;
}
@Override
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
return 0;
}
@Override
public VoxelShape getVisualShape(BlockState state, BlockGetter world, BlockPos pos, CollisionContext context) {
return Shapes.empty();
}
@Override
protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> builder) {
super.createBlockStateDefinition(builder);
builder.add(FACING);
}
@Override
public BlockState getStateForPlacement(BlockPlaceContext context) {
return super.getStateForPlacement(context).setValue(FACING, context.getHorizontalDirection().getOpposite());
}
public BlockState rotate(BlockState state, Rotation rot) {
return state.setValue(FACING, rot.rotate(state.getValue(FACING)));
}
public BlockState mirror(BlockState state, Mirror mirrorIn) {
return state.rotate(mirrorIn.getRotation(state.getValue(FACING)));
}
@Override
public InteractionResult use(BlockState blockstate, Level world, BlockPos pos, Player entity, InteractionHand hand, BlockHitResult hit) {
super.use(blockstate, world, pos, entity, hand, hit);
if (entity instanceof ServerPlayer player) {
NetworkHooks.openScreen(player, new MenuProvider() {
@Override
public Component getDisplayName() {
return Component.literal("Star Assembly Table");
}
@Override
public AbstractContainerMenu createMenu(int id, Inventory inventory, Player player) {
return new StarAssemblyTableGUIMenu(id, inventory, new FriendlyByteBuf(Unpooled.buffer()).writeBlockPos(pos));
}
}, pos);
}
return InteractionResult.SUCCESS;
}
@Override
public MenuProvider getMenuProvider(BlockState state, Level worldIn, BlockPos pos) {
BlockEntity tileEntity = worldIn.getBlockEntity(pos);
return tileEntity instanceof MenuProvider menuProvider ? menuProvider : null;
}
@Override
public BlockEntity newBlockEntity(BlockPos pos, BlockState state) {
return new StarAssemblyTableBlockEntity(pos, state);
}
@Override
public boolean triggerEvent(BlockState state, Level world, BlockPos pos, int eventID, int eventParam) {
super.triggerEvent(state, world, pos, eventID, eventParam);
BlockEntity blockEntity = world.getBlockEntity(pos);
return blockEntity == null ? false : blockEntity.triggerEvent(eventID, eventParam);
}
@Override
public void onRemove(BlockState state, Level world, BlockPos pos, BlockState newState, boolean isMoving) {
if (state.getBlock() != newState.getBlock()) {
BlockEntity blockEntity = world.getBlockEntity(pos);
if (blockEntity instanceof StarAssemblyTableBlockEntity be) {
Containers.dropContents(world, pos, be);
world.updateNeighbourForOutputSignal(pos, this);
}
super.onRemove(state, world, pos, newState, isMoving);
}
}
@Override
public boolean hasAnalogOutputSignal(BlockState state) {
return true;
}
@Override
public int getAnalogOutputSignal(BlockState blockState, Level world, BlockPos pos) {
BlockEntity tileentity = world.getBlockEntity(pos);
if (tileentity instanceof StarAssemblyTableBlockEntity be)
return AbstractContainerMenu.getRedstoneSignalFromContainer(be);
else
return 0;
}
}

View File

@@ -1,4 +1,3 @@
package net.mcreator.arisrandomadditions.block.entity;
import net.minecraftforge.items.wrapper.SidedInvWrapper;

View File

@@ -0,0 +1,165 @@
package net.mcreator.arisrandomadditions.block.entity;
import net.minecraftforge.items.wrapper.SidedInvWrapper;
import net.minecraftforge.items.IItemHandler;
import net.minecraftforge.fluids.capability.templates.FluidTank;
import net.minecraftforge.common.util.LazyOptional;
import net.minecraftforge.common.capabilities.ForgeCapabilities;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.inventory.AbstractContainerMenu;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.WorldlyContainer;
import net.minecraft.world.ContainerHelper;
import net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket;
import net.minecraft.network.chat.Component;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.core.NonNullList;
import net.minecraft.core.Direction;
import net.minecraft.core.BlockPos;
import net.mcreator.arisrandomadditions.world.inventory.NetherPowerGeneratorGUIMenu;
import net.mcreator.arisrandomadditions.init.ArisRandomAdditionsModFluids;
import net.mcreator.arisrandomadditions.init.ArisRandomAdditionsModBlockEntities;
import javax.annotation.Nullable;
import java.util.stream.IntStream;
import io.netty.buffer.Unpooled;
public class NetherPowerGeneratorBlockEntity extends RandomizableContainerBlockEntity implements WorldlyContainer {
private NonNullList<ItemStack> stacks = NonNullList.<ItemStack>withSize(1, ItemStack.EMPTY);
private final LazyOptional<? extends IItemHandler>[] handlers = SidedInvWrapper.create(this, Direction.values());
public NetherPowerGeneratorBlockEntity(BlockPos position, BlockState state) {
super(ArisRandomAdditionsModBlockEntities.NETHER_POWER_GENERATOR.get(), position, state);
}
@Override
public void load(CompoundTag compound) {
super.load(compound);
if (!this.tryLoadLootTable(compound))
this.stacks = NonNullList.withSize(this.getContainerSize(), ItemStack.EMPTY);
ContainerHelper.loadAllItems(compound, this.stacks);
if (compound.get("fluidTank") instanceof CompoundTag compoundTag)
fluidTank.readFromNBT(compoundTag);
}
@Override
public void saveAdditional(CompoundTag compound) {
super.saveAdditional(compound);
if (!this.trySaveLootTable(compound)) {
ContainerHelper.saveAllItems(compound, this.stacks);
}
compound.put("fluidTank", fluidTank.writeToNBT(new CompoundTag()));
}
@Override
public ClientboundBlockEntityDataPacket getUpdatePacket() {
return ClientboundBlockEntityDataPacket.create(this);
}
@Override
public CompoundTag getUpdateTag() {
return this.saveWithFullMetadata();
}
@Override
public int getContainerSize() {
return stacks.size();
}
@Override
public boolean isEmpty() {
for (ItemStack itemstack : this.stacks)
if (!itemstack.isEmpty())
return false;
return true;
}
@Override
public Component getDefaultName() {
return Component.literal("nether_power_generator");
}
@Override
public int getMaxStackSize() {
return 1;
}
@Override
public AbstractContainerMenu createMenu(int id, Inventory inventory) {
return new NetherPowerGeneratorGUIMenu(id, inventory, new FriendlyByteBuf(Unpooled.buffer()).writeBlockPos(this.worldPosition));
}
@Override
public Component getDisplayName() {
return Component.literal("Nether Power Generator");
}
@Override
protected NonNullList<ItemStack> getItems() {
return this.stacks;
}
@Override
protected void setItems(NonNullList<ItemStack> stacks) {
this.stacks = stacks;
}
@Override
public boolean canPlaceItem(int index, ItemStack stack) {
return true;
}
@Override
public int[] getSlotsForFace(Direction side) {
return IntStream.range(0, this.getContainerSize()).toArray();
}
@Override
public boolean canPlaceItemThroughFace(int index, ItemStack stack, @Nullable Direction direction) {
return this.canPlaceItem(index, stack);
}
@Override
public boolean canTakeItemThroughFace(int index, ItemStack stack, Direction direction) {
return true;
}
private final FluidTank fluidTank = new FluidTank(3000, fs -> {
if (fs.getFluid() == ArisRandomAdditionsModFluids.NETHERRACK_JUICE.get())
return true;
if (fs.getFluid() == ArisRandomAdditionsModFluids.FLOWING_NETHERRACK_JUICE.get())
return true;
return false;
}) {
@Override
protected void onContentsChanged() {
super.onContentsChanged();
setChanged();
level.sendBlockUpdated(worldPosition, level.getBlockState(worldPosition), level.getBlockState(worldPosition), 2);
}
};
@Override
public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing) {
if (!this.remove && facing != null && capability == ForgeCapabilities.ITEM_HANDLER)
return handlers[facing.ordinal()].cast();
if (!this.remove && capability == ForgeCapabilities.FLUID_HANDLER)
return LazyOptional.of(() -> fluidTank).cast();
return super.getCapability(capability, facing);
}
@Override
public void setRemoved() {
super.setRemoved();
for (LazyOptional<? extends IItemHandler> handler : handlers)
handler.invalidate();
}
}

View File

@@ -1,4 +1,3 @@
package net.mcreator.arisrandomadditions.block.entity;
import net.minecraftforge.items.wrapper.SidedInvWrapper;

View File

@@ -0,0 +1,143 @@
package net.mcreator.arisrandomadditions.block.entity;
import net.minecraftforge.items.wrapper.SidedInvWrapper;
import net.minecraftforge.items.IItemHandler;
import net.minecraftforge.common.util.LazyOptional;
import net.minecraftforge.common.capabilities.ForgeCapabilities;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.inventory.AbstractContainerMenu;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.WorldlyContainer;
import net.minecraft.world.ContainerHelper;
import net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket;
import net.minecraft.network.chat.Component;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.core.NonNullList;
import net.minecraft.core.Direction;
import net.minecraft.core.BlockPos;
import net.mcreator.arisrandomadditions.world.inventory.StarAssemblyTableGUIMenu;
import net.mcreator.arisrandomadditions.init.ArisRandomAdditionsModBlockEntities;
import javax.annotation.Nullable;
import java.util.stream.IntStream;
import io.netty.buffer.Unpooled;
public class StarAssemblyTableBlockEntity extends RandomizableContainerBlockEntity implements WorldlyContainer {
private NonNullList<ItemStack> stacks = NonNullList.<ItemStack>withSize(5, ItemStack.EMPTY);
private final LazyOptional<? extends IItemHandler>[] handlers = SidedInvWrapper.create(this, Direction.values());
public StarAssemblyTableBlockEntity(BlockPos position, BlockState state) {
super(ArisRandomAdditionsModBlockEntities.STAR_ASSEMBLY_TABLE.get(), position, state);
}
@Override
public void load(CompoundTag compound) {
super.load(compound);
if (!this.tryLoadLootTable(compound))
this.stacks = NonNullList.withSize(this.getContainerSize(), ItemStack.EMPTY);
ContainerHelper.loadAllItems(compound, this.stacks);
}
@Override
public void saveAdditional(CompoundTag compound) {
super.saveAdditional(compound);
if (!this.trySaveLootTable(compound)) {
ContainerHelper.saveAllItems(compound, this.stacks);
}
}
@Override
public ClientboundBlockEntityDataPacket getUpdatePacket() {
return ClientboundBlockEntityDataPacket.create(this);
}
@Override
public CompoundTag getUpdateTag() {
return this.saveWithFullMetadata();
}
@Override
public int getContainerSize() {
return stacks.size();
}
@Override
public boolean isEmpty() {
for (ItemStack itemstack : this.stacks)
if (!itemstack.isEmpty())
return false;
return true;
}
@Override
public Component getDefaultName() {
return Component.literal("star_assembly_table");
}
@Override
public int getMaxStackSize() {
return 64;
}
@Override
public AbstractContainerMenu createMenu(int id, Inventory inventory) {
return new StarAssemblyTableGUIMenu(id, inventory, new FriendlyByteBuf(Unpooled.buffer()).writeBlockPos(this.worldPosition));
}
@Override
public Component getDisplayName() {
return Component.literal("Star Assembly Table");
}
@Override
protected NonNullList<ItemStack> getItems() {
return this.stacks;
}
@Override
protected void setItems(NonNullList<ItemStack> stacks) {
this.stacks = stacks;
}
@Override
public boolean canPlaceItem(int index, ItemStack stack) {
return true;
}
@Override
public int[] getSlotsForFace(Direction side) {
return IntStream.range(0, this.getContainerSize()).toArray();
}
@Override
public boolean canPlaceItemThroughFace(int index, ItemStack stack, @Nullable Direction direction) {
return this.canPlaceItem(index, stack);
}
@Override
public boolean canTakeItemThroughFace(int index, ItemStack stack, Direction direction) {
return true;
}
@Override
public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing) {
if (!this.remove && facing != null && capability == ForgeCapabilities.ITEM_HANDLER)
return handlers[facing.ordinal()].cast();
return super.getCapability(capability, facing);
}
@Override
public void setRemoved() {
super.setRemoved();
for (LazyOptional<? extends IItemHandler> handler : handlers)
handler.invalidate();
}
}

View File

@@ -1,4 +1,3 @@
package net.mcreator.arisrandomadditions.client.gui;
import net.minecraft.world.level.Level;

View File

@@ -0,0 +1,95 @@
package net.mcreator.arisrandomadditions.client.gui;
import net.minecraft.world.level.Level;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.network.chat.Component;
import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen;
import net.minecraft.client.gui.components.Button;
import net.minecraft.client.gui.GuiGraphics;
import net.mcreator.arisrandomadditions.world.inventory.NetherPowerGeneratorGUIMenu;
import net.mcreator.arisrandomadditions.procedures.NetherPowerGeneratorFluidTankTextUpdateProcedure;
import net.mcreator.arisrandomadditions.network.NetherPowerGeneratorGUIButtonMessage;
import net.mcreator.arisrandomadditions.ArisRandomAdditionsMod;
import java.util.HashMap;
import com.mojang.blaze3d.systems.RenderSystem;
public class NetherPowerGeneratorGUIScreen extends AbstractContainerScreen<NetherPowerGeneratorGUIMenu> {
private final static HashMap<String, Object> guistate = NetherPowerGeneratorGUIMenu.guistate;
private final Level world;
private final int x, y, z;
private final Player entity;
Button button_refill;
Button button_drain;
public NetherPowerGeneratorGUIScreen(NetherPowerGeneratorGUIMenu container, Inventory inventory, Component text) {
super(container, inventory, text);
this.world = container.world;
this.x = container.x;
this.y = container.y;
this.z = container.z;
this.entity = container.entity;
this.imageWidth = 176;
this.imageHeight = 213;
}
private static final ResourceLocation texture = new ResourceLocation("aris_random_additions:textures/screens/nether_power_generator_gui.png");
@Override
public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) {
this.renderBackground(guiGraphics);
super.render(guiGraphics, mouseX, mouseY, partialTicks);
this.renderTooltip(guiGraphics, mouseX, mouseY);
}
@Override
protected void renderBg(GuiGraphics guiGraphics, float partialTicks, int gx, int gy) {
RenderSystem.setShaderColor(1, 1, 1, 1);
RenderSystem.enableBlend();
RenderSystem.defaultBlendFunc();
guiGraphics.blit(texture, this.leftPos, this.topPos, 0, 0, this.imageWidth, this.imageHeight, this.imageWidth, this.imageHeight);
RenderSystem.disableBlend();
}
@Override
public boolean keyPressed(int key, int b, int c) {
if (key == 256) {
this.minecraft.player.closeContainer();
return true;
}
return super.keyPressed(key, b, c);
}
@Override
protected void renderLabels(GuiGraphics guiGraphics, int mouseX, int mouseY) {
guiGraphics.drawString(this.font, Component.translatable("gui.aris_random_additions.nether_power_generator_gui.label_nether_power_generator"), 6, 8, -16777216, false);
guiGraphics.drawString(this.font,
NetherPowerGeneratorFluidTankTextUpdateProcedure.execute(world, x, y, z), 6, 80, -13434880, false);
}
@Override
public void init() {
super.init();
button_refill = Button.builder(Component.translatable("gui.aris_random_additions.nether_power_generator_gui.button_refill"), e -> {
if (true) {
ArisRandomAdditionsMod.PACKET_HANDLER.sendToServer(new NetherPowerGeneratorGUIButtonMessage(0, x, y, z));
NetherPowerGeneratorGUIButtonMessage.handleButtonAction(entity, 0, x, y, z);
}
}).bounds(this.leftPos + 92, this.topPos + 53, 56, 20).build();
guistate.put("button:button_refill", button_refill);
this.addRenderableWidget(button_refill);
button_drain = Button.builder(Component.translatable("gui.aris_random_additions.nether_power_generator_gui.button_drain"), e -> {
if (true) {
ArisRandomAdditionsMod.PACKET_HANDLER.sendToServer(new NetherPowerGeneratorGUIButtonMessage(1, x, y, z));
NetherPowerGeneratorGUIButtonMessage.handleButtonAction(entity, 1, x, y, z);
}
}).bounds(this.leftPos + 29, this.topPos + 53, 51, 20).build();
guistate.put("button:button_drain", button_drain);
this.addRenderableWidget(button_drain);
}
}

View File

@@ -1,4 +1,3 @@
package net.mcreator.arisrandomadditions.client.gui;
import net.minecraft.world.level.Level;

View File

@@ -0,0 +1,82 @@
package net.mcreator.arisrandomadditions.client.gui;
import net.minecraft.world.level.Level;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.network.chat.Component;
import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen;
import net.minecraft.client.gui.components.Button;
import net.minecraft.client.gui.GuiGraphics;
import net.mcreator.arisrandomadditions.world.inventory.StarAssemblyTableGUIMenu;
import net.mcreator.arisrandomadditions.network.StarAssemblyTableGUIButtonMessage;
import net.mcreator.arisrandomadditions.ArisRandomAdditionsMod;
import java.util.HashMap;
import com.mojang.blaze3d.systems.RenderSystem;
public class StarAssemblyTableGUIScreen extends AbstractContainerScreen<StarAssemblyTableGUIMenu> {
private final static HashMap<String, Object> guistate = StarAssemblyTableGUIMenu.guistate;
private final Level world;
private final int x, y, z;
private final Player entity;
Button button_assemble;
public StarAssemblyTableGUIScreen(StarAssemblyTableGUIMenu container, Inventory inventory, Component text) {
super(container, inventory, text);
this.world = container.world;
this.x = container.x;
this.y = container.y;
this.z = container.z;
this.entity = container.entity;
this.imageWidth = 200;
this.imageHeight = 220;
}
private static final ResourceLocation texture = new ResourceLocation("aris_random_additions:textures/screens/star_assembly_table_gui.png");
@Override
public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) {
this.renderBackground(guiGraphics);
super.render(guiGraphics, mouseX, mouseY, partialTicks);
this.renderTooltip(guiGraphics, mouseX, mouseY);
}
@Override
protected void renderBg(GuiGraphics guiGraphics, float partialTicks, int gx, int gy) {
RenderSystem.setShaderColor(1, 1, 1, 1);
RenderSystem.enableBlend();
RenderSystem.defaultBlendFunc();
guiGraphics.blit(texture, this.leftPos, this.topPos, 0, 0, this.imageWidth, this.imageHeight, this.imageWidth, this.imageHeight);
RenderSystem.disableBlend();
}
@Override
public boolean keyPressed(int key, int b, int c) {
if (key == 256) {
this.minecraft.player.closeContainer();
return true;
}
return super.keyPressed(key, b, c);
}
@Override
protected void renderLabels(GuiGraphics guiGraphics, int mouseX, int mouseY) {
guiGraphics.drawString(this.font, Component.translatable("gui.aris_random_additions.star_assembly_table_gui.label_star_assembly_table"), 9, 7, -13434829, false);
}
@Override
public void init() {
super.init();
button_assemble = Button.builder(Component.translatable("gui.aris_random_additions.star_assembly_table_gui.button_assemble"), e -> {
if (true) {
ArisRandomAdditionsMod.PACKET_HANDLER.sendToServer(new StarAssemblyTableGUIButtonMessage(0, x, y, z));
StarAssemblyTableGUIButtonMessage.handleButtonAction(entity, 0, x, y, z);
}
}).bounds(this.leftPos + 117, this.topPos + 79, 67, 20).build();
guistate.put("button:button_assemble", button_assemble);
this.addRenderableWidget(button_assemble);
}
}

View File

@@ -1,4 +1,3 @@
package net.mcreator.arisrandomadditions.client.gui;
import net.minecraft.world.level.Level;

View File

@@ -11,7 +11,9 @@ import net.minecraftforge.registries.DeferredRegister;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraft.world.level.block.Block;
import net.mcreator.arisrandomadditions.block.entity.StarAssemblyTableBlockEntity;
import net.mcreator.arisrandomadditions.block.entity.OreMinerBlockEntity;
import net.mcreator.arisrandomadditions.block.entity.NetherPowerGeneratorBlockEntity;
import net.mcreator.arisrandomadditions.block.entity.BedrockifierBlockEntity;
import net.mcreator.arisrandomadditions.ArisRandomAdditionsMod;
@@ -19,6 +21,8 @@ public class ArisRandomAdditionsModBlockEntities {
public static final DeferredRegister<BlockEntityType<?>> REGISTRY = DeferredRegister.create(ForgeRegistries.BLOCK_ENTITY_TYPES, ArisRandomAdditionsMod.MODID);
public static final RegistryObject<BlockEntityType<?>> ORE_MINER = register("ore_miner", ArisRandomAdditionsModBlocks.ORE_MINER, OreMinerBlockEntity::new);
public static final RegistryObject<BlockEntityType<?>> BEDROCKIFIER = register("bedrockifier", ArisRandomAdditionsModBlocks.BEDROCKIFIER, BedrockifierBlockEntity::new);
public static final RegistryObject<BlockEntityType<?>> NETHER_POWER_GENERATOR = register("nether_power_generator", ArisRandomAdditionsModBlocks.NETHER_POWER_GENERATOR, NetherPowerGeneratorBlockEntity::new);
public static final RegistryObject<BlockEntityType<?>> STAR_ASSEMBLY_TABLE = register("star_assembly_table", ArisRandomAdditionsModBlocks.STAR_ASSEMBLY_TABLE, StarAssemblyTableBlockEntity::new);
// Start of user code block custom block entities
// End of user code block custom block entities

View File

@@ -10,6 +10,7 @@ import net.minecraftforge.registries.DeferredRegister;
import net.minecraft.world.level.block.Block;
import net.mcreator.arisrandomadditions.block.StarAssemblyTableBlock;
import net.mcreator.arisrandomadditions.block.SodaMachineBlock;
import net.mcreator.arisrandomadditions.block.RedstoneBricksBlock;
import net.mcreator.arisrandomadditions.block.RedstoneBrickWallsBlock;
@@ -23,6 +24,7 @@ import net.mcreator.arisrandomadditions.block.OrichalcumDeepslateOreBlock;
import net.mcreator.arisrandomadditions.block.OrichalcumBlockBlock;
import net.mcreator.arisrandomadditions.block.OreMinerBlock;
import net.mcreator.arisrandomadditions.block.NetherrackJuiceBlock;
import net.mcreator.arisrandomadditions.block.NetherPowerGeneratorBlock;
import net.mcreator.arisrandomadditions.block.MintPlantBlock;
import net.mcreator.arisrandomadditions.block.MagmaBricksBlock;
import net.mcreator.arisrandomadditions.block.MagmaBrickWallsBlock;
@@ -37,7 +39,18 @@ import net.mcreator.arisrandomadditions.block.CondensedCondensedNetherrackBlock;
import net.mcreator.arisrandomadditions.block.CondensedCondensedCondensedNetherrackBlock;
import net.mcreator.arisrandomadditions.block.BrokenGlassBlock;
import net.mcreator.arisrandomadditions.block.BrickierMagmaBricksBlock;
import net.mcreator.arisrandomadditions.block.BlackIronBlockBlock;
import net.mcreator.arisrandomadditions.block.BedrockifierBlock;
import net.mcreator.arisrandomadditions.block.AnaheimWoodBlock;
import net.mcreator.arisrandomadditions.block.AnaheimStairsBlock;
import net.mcreator.arisrandomadditions.block.AnaheimSlabBlock;
import net.mcreator.arisrandomadditions.block.AnaheimPressurePlateBlock;
import net.mcreator.arisrandomadditions.block.AnaheimPlanksBlock;
import net.mcreator.arisrandomadditions.block.AnaheimLogBlock;
import net.mcreator.arisrandomadditions.block.AnaheimLeavesBlock;
import net.mcreator.arisrandomadditions.block.AnaheimFenceGateBlock;
import net.mcreator.arisrandomadditions.block.AnaheimFenceBlock;
import net.mcreator.arisrandomadditions.block.AnaheimButtonBlock;
import net.mcreator.arisrandomadditions.ArisRandomAdditionsMod;
public class ArisRandomAdditionsModBlocks {
@@ -70,6 +83,19 @@ public class ArisRandomAdditionsModBlocks {
public static final RegistryObject<Block> MINT_PLANT = REGISTRY.register("mint_plant", () -> new MintPlantBlock());
public static final RegistryObject<Block> BRICKIER_MAGMA_BRICKS = REGISTRY.register("brickier_magma_bricks", () -> new BrickierMagmaBricksBlock());
public static final RegistryObject<Block> SODA_MACHINE = REGISTRY.register("soda_machine", () -> new SodaMachineBlock());
public static final RegistryObject<Block> BLACK_IRON_BLOCK = REGISTRY.register("black_iron_block", () -> new BlackIronBlockBlock());
public static final RegistryObject<Block> NETHER_POWER_GENERATOR = REGISTRY.register("nether_power_generator", () -> new NetherPowerGeneratorBlock());
public static final RegistryObject<Block> STAR_ASSEMBLY_TABLE = REGISTRY.register("star_assembly_table", () -> new StarAssemblyTableBlock());
public static final RegistryObject<Block> ANAHEIM_WOOD = REGISTRY.register("anaheim_wood", () -> new AnaheimWoodBlock());
public static final RegistryObject<Block> ANAHEIM_LOG = REGISTRY.register("anaheim_log", () -> new AnaheimLogBlock());
public static final RegistryObject<Block> ANAHEIM_PLANKS = REGISTRY.register("anaheim_planks", () -> new AnaheimPlanksBlock());
public static final RegistryObject<Block> ANAHEIM_LEAVES = REGISTRY.register("anaheim_leaves", () -> new AnaheimLeavesBlock());
public static final RegistryObject<Block> ANAHEIM_STAIRS = REGISTRY.register("anaheim_stairs", () -> new AnaheimStairsBlock());
public static final RegistryObject<Block> ANAHEIM_SLAB = REGISTRY.register("anaheim_slab", () -> new AnaheimSlabBlock());
public static final RegistryObject<Block> ANAHEIM_FENCE = REGISTRY.register("anaheim_fence", () -> new AnaheimFenceBlock());
public static final RegistryObject<Block> ANAHEIM_FENCE_GATE = REGISTRY.register("anaheim_fence_gate", () -> new AnaheimFenceGateBlock());
public static final RegistryObject<Block> ANAHEIM_PRESSURE_PLATE = REGISTRY.register("anaheim_pressure_plate", () -> new AnaheimPressurePlateBlock());
public static final RegistryObject<Block> ANAHEIM_BUTTON = REGISTRY.register("anaheim_button", () -> new AnaheimButtonBlock());
// Start of user code block custom blocks
// End of user code block custom blocks
}

View File

@@ -19,13 +19,17 @@ import net.mcreator.arisrandomadditions.item.WandOfResizingItem;
import net.mcreator.arisrandomadditions.item.WandOfDrainingItem;
import net.mcreator.arisrandomadditions.item.VoidStarItem;
import net.mcreator.arisrandomadditions.item.VoidAppleItem;
import net.mcreator.arisrandomadditions.item.TurtleAppleItem;
import net.mcreator.arisrandomadditions.item.TurdItem;
import net.mcreator.arisrandomadditions.item.TopPieceOfNetherStarItem;
import net.mcreator.arisrandomadditions.item.TasteTheRainbowWaterCanItem;
import net.mcreator.arisrandomadditions.item.SweetenedCarbonatedWaterCanItem;
import net.mcreator.arisrandomadditions.item.StarWandItem;
import net.mcreator.arisrandomadditions.item.StarItem;
import net.mcreator.arisrandomadditions.item.SocketItem;
import net.mcreator.arisrandomadditions.item.SnowGolemQuestionMarkItem;
import net.mcreator.arisrandomadditions.item.SandDustItem;
import net.mcreator.arisrandomadditions.item.RightPieceOfNetherStarItem;
import net.mcreator.arisrandomadditions.item.PowerStarItem;
import net.mcreator.arisrandomadditions.item.PocketLightningItem;
import net.mcreator.arisrandomadditions.item.OrichalcumSwordItem;
@@ -43,12 +47,14 @@ import net.mcreator.arisrandomadditions.item.NightVisionGogglesItem;
import net.mcreator.arisrandomadditions.item.NetherrackitePickaxeItem;
import net.mcreator.arisrandomadditions.item.NetherrackiteItem;
import net.mcreator.arisrandomadditions.item.NetherrackJuiceItem;
import net.mcreator.arisrandomadditions.item.NetheriteAppleItem;
import net.mcreator.arisrandomadditions.item.MintSweetenedCarbonatedWaterCanItem;
import net.mcreator.arisrandomadditions.item.MintLeavesItem;
import net.mcreator.arisrandomadditions.item.MintItem;
import net.mcreator.arisrandomadditions.item.MagicFleshItem;
import net.mcreator.arisrandomadditions.item.MagicEggItem;
import net.mcreator.arisrandomadditions.item.MagicDustItem;
import net.mcreator.arisrandomadditions.item.LeftPieceOfNetherStarItem;
import net.mcreator.arisrandomadditions.item.LapisLazuliNuggetItem;
import net.mcreator.arisrandomadditions.item.IronGolemQuestionMarkItem;
import net.mcreator.arisrandomadditions.item.GravediggerItem;
@@ -68,8 +74,12 @@ import net.mcreator.arisrandomadditions.item.ChorusEyeItem;
import net.mcreator.arisrandomadditions.item.CheeseItem;
import net.mcreator.arisrandomadditions.item.CarbonatedWaterCanItem;
import net.mcreator.arisrandomadditions.item.CanLidItem;
import net.mcreator.arisrandomadditions.item.BottomPieceOfNetherStarItem;
import net.mcreator.arisrandomadditions.item.BlockEaterItem;
import net.mcreator.arisrandomadditions.item.BlazeAppleItem;
import net.mcreator.arisrandomadditions.item.BlackIronUpgradeSmithingTemplateItem;
import net.mcreator.arisrandomadditions.item.BlackIronIngotItem;
import net.mcreator.arisrandomadditions.item.BlackIronAppleItem;
import net.mcreator.arisrandomadditions.item.BedrockUpgradeTemplateItem;
import net.mcreator.arisrandomadditions.item.BedrockSwordItem;
import net.mcreator.arisrandomadditions.item.BedrockShardItem;
@@ -181,6 +191,29 @@ public class ArisRandomAdditionsModItems {
public static final RegistryObject<Item> SOCKET = REGISTRY.register("socket", () -> new SocketItem());
public static final RegistryObject<Item> SODA_MACHINE = block(ArisRandomAdditionsModBlocks.SODA_MACHINE);
public static final RegistryObject<Item> GOLD_TOKEN = REGISTRY.register("gold_token", () -> new GoldTokenItem());
public static final RegistryObject<Item> BLACK_IRON_BLOCK = block(ArisRandomAdditionsModBlocks.BLACK_IRON_BLOCK);
public static final RegistryObject<Item> NETHER_POWER_GENERATOR = block(ArisRandomAdditionsModBlocks.NETHER_POWER_GENERATOR);
public static final RegistryObject<Item> STAR_ASSEMBLY_TABLE = block(ArisRandomAdditionsModBlocks.STAR_ASSEMBLY_TABLE);
public static final RegistryObject<Item> LEFT_PIECE_OF_NETHER_STAR = REGISTRY.register("left_piece_of_nether_star", () -> new LeftPieceOfNetherStarItem());
public static final RegistryObject<Item> TOP_PIECE_OF_NETHER_STAR = REGISTRY.register("top_piece_of_nether_star", () -> new TopPieceOfNetherStarItem());
public static final RegistryObject<Item> RIGHT_PIECE_OF_NETHER_STAR = REGISTRY.register("right_piece_of_nether_star", () -> new RightPieceOfNetherStarItem());
public static final RegistryObject<Item> BOTTOM_PIECE_OF_NETHER_STAR = REGISTRY.register("bottom_piece_of_nether_star", () -> new BottomPieceOfNetherStarItem());
public static final RegistryObject<Item> ANAHEIM_WOOD = block(ArisRandomAdditionsModBlocks.ANAHEIM_WOOD);
public static final RegistryObject<Item> ANAHEIM_LOG = block(ArisRandomAdditionsModBlocks.ANAHEIM_LOG);
public static final RegistryObject<Item> ANAHEIM_PLANKS = block(ArisRandomAdditionsModBlocks.ANAHEIM_PLANKS);
public static final RegistryObject<Item> ANAHEIM_LEAVES = block(ArisRandomAdditionsModBlocks.ANAHEIM_LEAVES);
public static final RegistryObject<Item> ANAHEIM_STAIRS = block(ArisRandomAdditionsModBlocks.ANAHEIM_STAIRS);
public static final RegistryObject<Item> ANAHEIM_SLAB = block(ArisRandomAdditionsModBlocks.ANAHEIM_SLAB);
public static final RegistryObject<Item> ANAHEIM_FENCE = block(ArisRandomAdditionsModBlocks.ANAHEIM_FENCE);
public static final RegistryObject<Item> ANAHEIM_FENCE_GATE = block(ArisRandomAdditionsModBlocks.ANAHEIM_FENCE_GATE);
public static final RegistryObject<Item> ANAHEIM_PRESSURE_PLATE = block(ArisRandomAdditionsModBlocks.ANAHEIM_PRESSURE_PLATE);
public static final RegistryObject<Item> ANAHEIM_BUTTON = block(ArisRandomAdditionsModBlocks.ANAHEIM_BUTTON);
public static final RegistryObject<Item> BLACK_IRON_UPGRADE_SMITHING_TEMPLATE = REGISTRY.register("black_iron_upgrade_smithing_template", () -> new BlackIronUpgradeSmithingTemplateItem());
public static final RegistryObject<Item> BLAZE_APPLE = REGISTRY.register("blaze_apple", () -> new BlazeAppleItem());
public static final RegistryObject<Item> TURTLE_APPLE = REGISTRY.register("turtle_apple", () -> new TurtleAppleItem());
public static final RegistryObject<Item> BLACK_IRON_APPLE = REGISTRY.register("black_iron_apple", () -> new BlackIronAppleItem());
public static final RegistryObject<Item> TASTE_THE_RAINBOW_WATER_CAN = REGISTRY.register("taste_the_rainbow_water_can", () -> new TasteTheRainbowWaterCanItem());
public static final RegistryObject<Item> NETHERITE_APPLE = REGISTRY.register("netherite_apple", () -> new NetheriteAppleItem());
// Start of user code block custom items
// End of user code block custom items

View File

@@ -12,7 +12,9 @@ import net.minecraftforge.common.extensions.IForgeMenuType;
import net.minecraft.world.inventory.MenuType;
import net.mcreator.arisrandomadditions.world.inventory.TurdGUIMenu;
import net.mcreator.arisrandomadditions.world.inventory.StarAssemblyTableGUIMenu;
import net.mcreator.arisrandomadditions.world.inventory.OreMinerGUIMenu;
import net.mcreator.arisrandomadditions.world.inventory.NetherPowerGeneratorGUIMenu;
import net.mcreator.arisrandomadditions.world.inventory.BedrockifierGUIMenu;
import net.mcreator.arisrandomadditions.ArisRandomAdditionsMod;
@@ -21,4 +23,6 @@ public class ArisRandomAdditionsModMenus {
public static final RegistryObject<MenuType<OreMinerGUIMenu>> ORE_MINER_GUI = REGISTRY.register("ore_miner_gui", () -> IForgeMenuType.create(OreMinerGUIMenu::new));
public static final RegistryObject<MenuType<BedrockifierGUIMenu>> BEDROCKIFIER_GUI = REGISTRY.register("bedrockifier_gui", () -> IForgeMenuType.create(BedrockifierGUIMenu::new));
public static final RegistryObject<MenuType<TurdGUIMenu>> TURD_GUI = REGISTRY.register("turd_gui", () -> IForgeMenuType.create(TurdGUIMenu::new));
public static final RegistryObject<MenuType<NetherPowerGeneratorGUIMenu>> NETHER_POWER_GENERATOR_GUI = REGISTRY.register("nether_power_generator_gui", () -> IForgeMenuType.create(NetherPowerGeneratorGUIMenu::new));
public static final RegistryObject<MenuType<StarAssemblyTableGUIMenu>> STAR_ASSEMBLY_TABLE_GUI = REGISTRY.register("star_assembly_table_gui", () -> IForgeMenuType.create(StarAssemblyTableGUIMenu::new));
}

View File

@@ -12,7 +12,9 @@ import net.minecraftforge.api.distmarker.Dist;
import net.minecraft.client.gui.screens.MenuScreens;
import net.mcreator.arisrandomadditions.client.gui.TurdGUIScreen;
import net.mcreator.arisrandomadditions.client.gui.StarAssemblyTableGUIScreen;
import net.mcreator.arisrandomadditions.client.gui.OreMinerGUIScreen;
import net.mcreator.arisrandomadditions.client.gui.NetherPowerGeneratorGUIScreen;
import net.mcreator.arisrandomadditions.client.gui.BedrockifierGUIScreen;
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
@@ -23,6 +25,8 @@ public class ArisRandomAdditionsModScreens {
MenuScreens.register(ArisRandomAdditionsModMenus.ORE_MINER_GUI.get(), OreMinerGUIScreen::new);
MenuScreens.register(ArisRandomAdditionsModMenus.BEDROCKIFIER_GUI.get(), BedrockifierGUIScreen::new);
MenuScreens.register(ArisRandomAdditionsModMenus.TURD_GUI.get(), TurdGUIScreen::new);
MenuScreens.register(ArisRandomAdditionsModMenus.NETHER_POWER_GENERATOR_GUI.get(), NetherPowerGeneratorGUIScreen::new);
MenuScreens.register(ArisRandomAdditionsModMenus.STAR_ASSEMBLY_TABLE_GUI.get(), StarAssemblyTableGUIScreen::new);
});
}
}

View File

@@ -39,7 +39,16 @@ public class ArisRandomAdditionsModTabs {
tabData.accept(ArisRandomAdditionsModBlocks.ENDITE_BLOCK.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.ORICHALCUM_DEEPSLATE_ORE.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.BRICKIER_MAGMA_BRICKS.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.SODA_MACHINE.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.BLACK_IRON_BLOCK.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.ANAHEIM_WOOD.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.ANAHEIM_LOG.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.ANAHEIM_PLANKS.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.ANAHEIM_STAIRS.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.ANAHEIM_SLAB.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.ANAHEIM_FENCE.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.ANAHEIM_FENCE_GATE.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.ANAHEIM_PRESSURE_PLATE.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.ANAHEIM_BUTTON.get().asItem());
} else if (tabData.getTabKey() == CreativeModeTabs.TOOLS_AND_UTILITIES) {
tabData.accept(ArisRandomAdditionsModItems.BLOCK_EATER.get());
tabData.accept(ArisRandomAdditionsModItems.NETHERRACKITE_PICKAXE.get());
@@ -83,6 +92,11 @@ public class ArisRandomAdditionsModTabs {
tabData.accept(ArisRandomAdditionsModItems.MINT_LEAVES.get());
tabData.accept(ArisRandomAdditionsModItems.SOCKET.get());
tabData.accept(ArisRandomAdditionsModItems.GOLD_TOKEN.get());
tabData.accept(ArisRandomAdditionsModItems.LEFT_PIECE_OF_NETHER_STAR.get());
tabData.accept(ArisRandomAdditionsModItems.TOP_PIECE_OF_NETHER_STAR.get());
tabData.accept(ArisRandomAdditionsModItems.RIGHT_PIECE_OF_NETHER_STAR.get());
tabData.accept(ArisRandomAdditionsModItems.BOTTOM_PIECE_OF_NETHER_STAR.get());
tabData.accept(ArisRandomAdditionsModItems.BLACK_IRON_UPGRADE_SMITHING_TEMPLATE.get());
} else if (tabData.getTabKey() == CreativeModeTabs.FOOD_AND_DRINKS) {
tabData.accept(ArisRandomAdditionsModItems.MAGIC_FLESH.get());
tabData.accept(ArisRandomAdditionsModItems.GOLDEN_BERRIES.get());
@@ -98,9 +112,17 @@ public class ArisRandomAdditionsModTabs {
tabData.accept(ArisRandomAdditionsModItems.SWEETENED_CARBONATED_WATER_CAN.get());
tabData.accept(ArisRandomAdditionsModItems.MINT_SWEETENED_CARBONATED_WATER_CAN.get());
tabData.accept(ArisRandomAdditionsModItems.ORANGE_SWEETENED_CARBONATED_WATER_CAN.get());
tabData.accept(ArisRandomAdditionsModItems.BLAZE_APPLE.get());
tabData.accept(ArisRandomAdditionsModItems.TURTLE_APPLE.get());
tabData.accept(ArisRandomAdditionsModItems.BLACK_IRON_APPLE.get());
tabData.accept(ArisRandomAdditionsModItems.TASTE_THE_RAINBOW_WATER_CAN.get());
tabData.accept(ArisRandomAdditionsModItems.NETHERITE_APPLE.get());
} else if (tabData.getTabKey() == CreativeModeTabs.FUNCTIONAL_BLOCKS) {
tabData.accept(ArisRandomAdditionsModBlocks.ORE_MINER.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.BEDROCKIFIER.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.SODA_MACHINE.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.NETHER_POWER_GENERATOR.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.STAR_ASSEMBLY_TABLE.get().asItem());
} else if (tabData.getTabKey() == CreativeModeTabs.SPAWN_EGGS) {
tabData.accept(ArisRandomAdditionsModItems.GHOUL_SPAWN_EGG.get());
tabData.accept(ArisRandomAdditionsModItems.TUX_SPAWN_EGG.get());
@@ -130,6 +152,7 @@ public class ArisRandomAdditionsModTabs {
tabData.accept(ArisRandomAdditionsModItems.ORICHALCUM_KATANA.get());
} else if (tabData.getTabKey() == CreativeModeTabs.NATURAL_BLOCKS) {
tabData.accept(ArisRandomAdditionsModBlocks.MINT_PLANT.get().asItem());
tabData.accept(ArisRandomAdditionsModBlocks.ANAHEIM_LEAVES.get().asItem());
}
}
}

View File

@@ -22,6 +22,11 @@ public class BedrockAppleItem extends Item {
super(new Item.Properties().stacksTo(64).fireResistant().rarity(Rarity.EPIC).food((new FoodProperties.Builder()).nutrition(20).saturationMod(4f).alwaysEat().build()));
}
@Override
public int getUseDuration(ItemStack itemstack) {
return 9;
}
@Override
@OnlyIn(Dist.CLIENT)
public boolean isFoil(ItemStack itemstack) {

View File

@@ -0,0 +1,51 @@
package net.mcreator.arisrandomadditions.item;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraft.world.level.Level;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Item;
import net.minecraft.world.food.FoodProperties;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.network.chat.Component;
import net.mcreator.arisrandomadditions.procedures.BlackIronApplePlayerFinishesUsingItemProcedure;
import java.util.List;
public class BlackIronAppleItem extends Item {
public BlackIronAppleItem() {
super(new Item.Properties().stacksTo(64).fireResistant().rarity(Rarity.EPIC).food((new FoodProperties.Builder()).nutrition(8).saturationMod(0.7f).alwaysEat().build()));
}
@Override
public int getUseDuration(ItemStack itemstack) {
return 9;
}
@Override
@OnlyIn(Dist.CLIENT)
public boolean isFoil(ItemStack itemstack) {
return true;
}
@Override
public void appendHoverText(ItemStack itemstack, Level level, List<Component> list, TooltipFlag flag) {
super.appendHoverText(itemstack, level, list, flag);
list.add(Component.translatable("item.aris_random_additions.black_iron_apple.description_0"));
}
@Override
public ItemStack finishUsingItem(ItemStack itemstack, Level world, LivingEntity entity) {
ItemStack retval = super.finishUsingItem(itemstack, world, entity);
double x = entity.getX();
double y = entity.getY();
double z = entity.getZ();
BlackIronApplePlayerFinishesUsingItemProcedure.execute(world, entity);
return retval;
}
}

View File

@@ -0,0 +1,11 @@
package net.mcreator.arisrandomadditions.item;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.Item;
public class BlackIronUpgradeSmithingTemplateItem extends Item {
public BlackIronUpgradeSmithingTemplateItem() {
super(new Item.Properties().stacksTo(64).rarity(Rarity.UNCOMMON));
}
}

View File

@@ -0,0 +1,51 @@
package net.mcreator.arisrandomadditions.item;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraft.world.level.Level;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Item;
import net.minecraft.world.food.FoodProperties;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.network.chat.Component;
import net.mcreator.arisrandomadditions.procedures.BlazeApplePlayerFinishesUsingItemProcedure;
import java.util.List;
public class BlazeAppleItem extends Item {
public BlazeAppleItem() {
super(new Item.Properties().stacksTo(64).fireResistant().rarity(Rarity.EPIC).food((new FoodProperties.Builder()).nutrition(9).saturationMod(1.1f).alwaysEat().build()));
}
@Override
public int getUseDuration(ItemStack itemstack) {
return 9;
}
@Override
@OnlyIn(Dist.CLIENT)
public boolean isFoil(ItemStack itemstack) {
return true;
}
@Override
public void appendHoverText(ItemStack itemstack, Level level, List<Component> list, TooltipFlag flag) {
super.appendHoverText(itemstack, level, list, flag);
list.add(Component.translatable("item.aris_random_additions.blaze_apple.description_0"));
}
@Override
public ItemStack finishUsingItem(ItemStack itemstack, Level world, LivingEntity entity) {
ItemStack retval = super.finishUsingItem(itemstack, world, entity);
double x = entity.getX();
double y = entity.getY();
double z = entity.getZ();
BlazeApplePlayerFinishesUsingItemProcedure.execute(world, entity);
return retval;
}
}

View File

@@ -0,0 +1,11 @@
package net.mcreator.arisrandomadditions.item;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.Item;
public class BottomPieceOfNetherStarItem extends Item {
public BottomPieceOfNetherStarItem() {
super(new Item.Properties().stacksTo(64).rarity(Rarity.RARE));
}
}

View File

@@ -0,0 +1,11 @@
package net.mcreator.arisrandomadditions.item;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.Item;
public class LeftPieceOfNetherStarItem extends Item {
public LeftPieceOfNetherStarItem() {
super(new Item.Properties().stacksTo(64).rarity(Rarity.RARE));
}
}

View File

@@ -0,0 +1,51 @@
package net.mcreator.arisrandomadditions.item;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraft.world.level.Level;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Item;
import net.minecraft.world.food.FoodProperties;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.network.chat.Component;
import net.mcreator.arisrandomadditions.procedures.NetheriteApplePlayerFinishesUsingItemProcedure;
import java.util.List;
public class NetheriteAppleItem extends Item {
public NetheriteAppleItem() {
super(new Item.Properties().stacksTo(64).fireResistant().rarity(Rarity.EPIC).food((new FoodProperties.Builder()).nutrition(12).saturationMod(1.2f).alwaysEat().build()));
}
@Override
public int getUseDuration(ItemStack itemstack) {
return 9;
}
@Override
@OnlyIn(Dist.CLIENT)
public boolean isFoil(ItemStack itemstack) {
return true;
}
@Override
public void appendHoverText(ItemStack itemstack, Level level, List<Component> list, TooltipFlag flag) {
super.appendHoverText(itemstack, level, list, flag);
list.add(Component.translatable("item.aris_random_additions.netherite_apple.description_0"));
}
@Override
public ItemStack finishUsingItem(ItemStack itemstack, Level world, LivingEntity entity) {
ItemStack retval = super.finishUsingItem(itemstack, world, entity);
double x = entity.getX();
double y = entity.getY();
double z = entity.getZ();
NetheriteApplePlayerFinishesUsingItemProcedure.execute(world, entity);
return retval;
}
}

View File

@@ -22,6 +22,11 @@ public class OrichalcumAppleItem extends Item {
super(new Item.Properties().stacksTo(64).fireResistant().rarity(Rarity.EPIC).food((new FoodProperties.Builder()).nutrition(9).saturationMod(0.9f).alwaysEat().build()));
}
@Override
public int getUseDuration(ItemStack itemstack) {
return 9;
}
@Override
@OnlyIn(Dist.CLIENT)
public boolean isFoil(ItemStack itemstack) {

View File

@@ -0,0 +1,11 @@
package net.mcreator.arisrandomadditions.item;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.Item;
public class RightPieceOfNetherStarItem extends Item {
public RightPieceOfNetherStarItem() {
super(new Item.Properties().stacksTo(64).rarity(Rarity.RARE));
}
}

View File

@@ -0,0 +1,42 @@
package net.mcreator.arisrandomadditions.item;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraft.world.level.Level;
import net.minecraft.world.item.UseAnim;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Item;
import net.minecraft.world.food.FoodProperties;
import net.minecraft.world.entity.LivingEntity;
import net.mcreator.arisrandomadditions.procedures.TasteTheRainbowWaterCanPlayerFinishesUsingItemProcedure;
public class TasteTheRainbowWaterCanItem extends Item {
public TasteTheRainbowWaterCanItem() {
super(new Item.Properties().stacksTo(64).rarity(Rarity.RARE).food((new FoodProperties.Builder()).nutrition(0).saturationMod(0f).alwaysEat().build()));
}
@Override
public UseAnim getUseAnimation(ItemStack itemstack) {
return UseAnim.DRINK;
}
@Override
@OnlyIn(Dist.CLIENT)
public boolean isFoil(ItemStack itemstack) {
return true;
}
@Override
public ItemStack finishUsingItem(ItemStack itemstack, Level world, LivingEntity entity) {
ItemStack retval = super.finishUsingItem(itemstack, world, entity);
double x = entity.getX();
double y = entity.getY();
double z = entity.getZ();
TasteTheRainbowWaterCanPlayerFinishesUsingItemProcedure.execute(world, entity);
return retval;
}
}

View File

@@ -0,0 +1,11 @@
package net.mcreator.arisrandomadditions.item;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.Item;
public class TopPieceOfNetherStarItem extends Item {
public TopPieceOfNetherStarItem() {
super(new Item.Properties().stacksTo(64).rarity(Rarity.RARE));
}
}

View File

@@ -0,0 +1,51 @@
package net.mcreator.arisrandomadditions.item;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraft.world.level.Level;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Item;
import net.minecraft.world.food.FoodProperties;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.network.chat.Component;
import net.mcreator.arisrandomadditions.procedures.TurtleApplePlayerFinishesUsingItemProcedure;
import java.util.List;
public class TurtleAppleItem extends Item {
public TurtleAppleItem() {
super(new Item.Properties().stacksTo(64).fireResistant().rarity(Rarity.EPIC).food((new FoodProperties.Builder()).nutrition(9).saturationMod(1.1f).alwaysEat().build()));
}
@Override
public int getUseDuration(ItemStack itemstack) {
return 9;
}
@Override
@OnlyIn(Dist.CLIENT)
public boolean isFoil(ItemStack itemstack) {
return true;
}
@Override
public void appendHoverText(ItemStack itemstack, Level level, List<Component> list, TooltipFlag flag) {
super.appendHoverText(itemstack, level, list, flag);
list.add(Component.translatable("item.aris_random_additions.turtle_apple.description_0"));
}
@Override
public ItemStack finishUsingItem(ItemStack itemstack, Level world, LivingEntity entity) {
ItemStack retval = super.finishUsingItem(itemstack, world, entity);
double x = entity.getX();
double y = entity.getY();
double z = entity.getZ();
TurtleApplePlayerFinishesUsingItemProcedure.execute(world, entity);
return retval;
}
}

View File

@@ -22,6 +22,11 @@ public class VoidAppleItem extends Item {
super(new Item.Properties().stacksTo(64).fireResistant().rarity(Rarity.EPIC).food((new FoodProperties.Builder()).nutrition(16).saturationMod(1.6f).alwaysEat().build()));
}
@Override
public int getUseDuration(ItemStack itemstack) {
return 9;
}
@Override
@OnlyIn(Dist.CLIENT)
public boolean isFoil(ItemStack itemstack) {

View File

@@ -0,0 +1,80 @@
package net.mcreator.arisrandomadditions.network;
import net.minecraftforge.network.NetworkEvent;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraft.world.level.Level;
import net.minecraft.world.entity.player.Player;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.core.BlockPos;
import net.mcreator.arisrandomadditions.world.inventory.NetherPowerGeneratorGUIMenu;
import net.mcreator.arisrandomadditions.procedures.NetherPowerGeneratorRefillLogicProcedure;
import net.mcreator.arisrandomadditions.procedures.NetherPowerGeneratorDrainLogicProcedure;
import net.mcreator.arisrandomadditions.ArisRandomAdditionsMod;
import java.util.function.Supplier;
import java.util.HashMap;
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class NetherPowerGeneratorGUIButtonMessage {
private final int buttonID, x, y, z;
public NetherPowerGeneratorGUIButtonMessage(FriendlyByteBuf buffer) {
this.buttonID = buffer.readInt();
this.x = buffer.readInt();
this.y = buffer.readInt();
this.z = buffer.readInt();
}
public NetherPowerGeneratorGUIButtonMessage(int buttonID, int x, int y, int z) {
this.buttonID = buttonID;
this.x = x;
this.y = y;
this.z = z;
}
public static void buffer(NetherPowerGeneratorGUIButtonMessage message, FriendlyByteBuf buffer) {
buffer.writeInt(message.buttonID);
buffer.writeInt(message.x);
buffer.writeInt(message.y);
buffer.writeInt(message.z);
}
public static void handler(NetherPowerGeneratorGUIButtonMessage message, Supplier<NetworkEvent.Context> contextSupplier) {
NetworkEvent.Context context = contextSupplier.get();
context.enqueueWork(() -> {
Player entity = context.getSender();
int buttonID = message.buttonID;
int x = message.x;
int y = message.y;
int z = message.z;
handleButtonAction(entity, buttonID, x, y, z);
});
context.setPacketHandled(true);
}
public static void handleButtonAction(Player entity, int buttonID, int x, int y, int z) {
Level world = entity.level();
HashMap guistate = NetherPowerGeneratorGUIMenu.guistate;
// security measure to prevent arbitrary chunk generation
if (!world.hasChunkAt(new BlockPos(x, y, z)))
return;
if (buttonID == 0) {
NetherPowerGeneratorRefillLogicProcedure.execute(world, x, y, z);
}
if (buttonID == 1) {
NetherPowerGeneratorDrainLogicProcedure.execute(world, x, y, z);
}
}
@SubscribeEvent
public static void registerMessage(FMLCommonSetupEvent event) {
ArisRandomAdditionsMod.addNetworkMessage(NetherPowerGeneratorGUIButtonMessage.class, NetherPowerGeneratorGUIButtonMessage::buffer, NetherPowerGeneratorGUIButtonMessage::new, NetherPowerGeneratorGUIButtonMessage::handler);
}
}

View File

@@ -0,0 +1,75 @@
package net.mcreator.arisrandomadditions.network;
import net.minecraftforge.network.NetworkEvent;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraft.world.level.Level;
import net.minecraft.world.entity.player.Player;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.core.BlockPos;
import net.mcreator.arisrandomadditions.world.inventory.StarAssemblyTableGUIMenu;
import net.mcreator.arisrandomadditions.procedures.StarAssemblyTableAssembleLogicProcedure;
import net.mcreator.arisrandomadditions.ArisRandomAdditionsMod;
import java.util.function.Supplier;
import java.util.HashMap;
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class StarAssemblyTableGUIButtonMessage {
private final int buttonID, x, y, z;
public StarAssemblyTableGUIButtonMessage(FriendlyByteBuf buffer) {
this.buttonID = buffer.readInt();
this.x = buffer.readInt();
this.y = buffer.readInt();
this.z = buffer.readInt();
}
public StarAssemblyTableGUIButtonMessage(int buttonID, int x, int y, int z) {
this.buttonID = buttonID;
this.x = x;
this.y = y;
this.z = z;
}
public static void buffer(StarAssemblyTableGUIButtonMessage message, FriendlyByteBuf buffer) {
buffer.writeInt(message.buttonID);
buffer.writeInt(message.x);
buffer.writeInt(message.y);
buffer.writeInt(message.z);
}
public static void handler(StarAssemblyTableGUIButtonMessage message, Supplier<NetworkEvent.Context> contextSupplier) {
NetworkEvent.Context context = contextSupplier.get();
context.enqueueWork(() -> {
Player entity = context.getSender();
int buttonID = message.buttonID;
int x = message.x;
int y = message.y;
int z = message.z;
handleButtonAction(entity, buttonID, x, y, z);
});
context.setPacketHandled(true);
}
public static void handleButtonAction(Player entity, int buttonID, int x, int y, int z) {
Level world = entity.level();
HashMap guistate = StarAssemblyTableGUIMenu.guistate;
// security measure to prevent arbitrary chunk generation
if (!world.hasChunkAt(new BlockPos(x, y, z)))
return;
if (buttonID == 0) {
StarAssemblyTableAssembleLogicProcedure.execute(world, x, y, z, entity);
}
}
@SubscribeEvent
public static void registerMessage(FMLCommonSetupEvent event) {
ArisRandomAdditionsMod.addNetworkMessage(StarAssemblyTableGUIButtonMessage.class, StarAssemblyTableGUIButtonMessage::buffer, StarAssemblyTableGUIButtonMessage::new, StarAssemblyTableGUIButtonMessage::handler);
}
}

View File

@@ -44,7 +44,7 @@ public class BedrockApplePlayerFinishesUsingItemProcedure {
_player.onUpdateAbilities();
}
if (entity instanceof Player _player && !_player.level().isClientSide())
_player.displayClientMessage(Component.literal("\u00A78Bedrock Apple \u00A7rgranted you Creative Flight!"), false);
_player.displayClientMessage(Component.literal("\u00A70Bedrock Apple \u00A7rgranted you Creative Flight!"), false);
}
}
}

View File

@@ -0,0 +1,66 @@
package net.mcreator.arisrandomadditions.procedures;
import net.minecraft.world.scores.criteria.ObjectiveCriteria;
import net.minecraft.world.scores.Scoreboard;
import net.minecraft.world.scores.Objective;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.ai.attributes.Attributes;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.network.chat.Component;
public class BlackIronApplePlayerFinishesUsingItemProcedure {
public static void execute(LevelAccessor world, Entity entity) {
if (entity == null)
return;
if (!world.isClientSide()) {
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.ABSORPTION, 600, 1, true, true));
if (entity instanceof LivingEntity _livingEntity3 && _livingEntity3.getAttributes().hasAttribute(Attributes.ARMOR))
_livingEntity3.getAttribute(Attributes.ARMOR)
.setBaseValue(((entity instanceof LivingEntity _livingEntity2 && _livingEntity2.getAttributes().hasAttribute(Attributes.ARMOR) ? _livingEntity2.getAttribute(Attributes.ARMOR).getBaseValue() : 0) + 1));
if (entity instanceof LivingEntity _livingEntity5 && _livingEntity5.getAttributes().hasAttribute(Attributes.ARMOR_TOUGHNESS))
_livingEntity5.getAttribute(Attributes.ARMOR_TOUGHNESS)
.setBaseValue(((entity instanceof LivingEntity _livingEntity4 && _livingEntity4.getAttributes().hasAttribute(Attributes.ARMOR_TOUGHNESS) ? _livingEntity4.getAttribute(Attributes.ARMOR_TOUGHNESS).getBaseValue() : 0) + 1));
{
Entity _ent = entity;
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective("PermanentBonusArmor");
if (_so == null)
_so = _sc.addObjective("PermanentBonusArmor", ObjectiveCriteria.DUMMY, Component.literal("PermanentBonusArmor"), ObjectiveCriteria.RenderType.INTEGER);
_sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).setScore((int) (new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);
if (_so != null)
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentBonusArmor", entity) + 1));
}
{
Entity _ent = entity;
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective("PermanentBonusArmorToughness");
if (_so == null)
_so = _sc.addObjective("PermanentBonusArmorToughness", ObjectiveCriteria.DUMMY, Component.literal("PermanentBonusArmorToughness"), ObjectiveCriteria.RenderType.INTEGER);
_sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).setScore((int) (new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);
if (_so != null)
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentBonusArmorToughness", entity) + 1));
}
if (entity instanceof Player) {
if (entity instanceof Player _player && !_player.level().isClientSide())
_player.displayClientMessage(Component.literal("\u00A78Black Iron Apple \u00A7rgranted you bonus Armor and Armor Toughenss!"), false);
}
}
}
}

View File

@@ -0,0 +1,37 @@
package net.mcreator.arisrandomadditions.procedures;
import net.minecraft.world.scores.criteria.ObjectiveCriteria;
import net.minecraft.world.scores.Scoreboard;
import net.minecraft.world.scores.Objective;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.network.chat.Component;
public class BlazeApplePlayerFinishesUsingItemProcedure {
public static void execute(LevelAccessor world, Entity entity) {
if (entity == null)
return;
if (!world.isClientSide()) {
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.JUMP, 900, 1, true, true));
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.MOVEMENT_SPEED, 900, 1, true, true));
{
Entity _ent = entity;
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective("PermanentFireResistance");
if (_so == null)
_so = _sc.addObjective("PermanentFireResistance", ObjectiveCriteria.DUMMY, Component.literal("PermanentFireResistance"), ObjectiveCriteria.RenderType.INTEGER);
_sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).setScore(1);
}
if (entity instanceof Player) {
if (entity instanceof Player _player && !_player.level().isClientSide())
_player.displayClientMessage(Component.literal("\u00A76Blaze Apple \u00A7rgranted you permanent Fire Resistance!"), false);
}
}
}
}

View File

@@ -27,7 +27,47 @@ public class GetPermanentStatsCommandProcedureProcedure {
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentBonusAttackDamage", entity)) + "\n" + "Permanent Creative Flight: " + (new Object() {
}.getScore("PermanentBonusAttackDamage", entity)) + "\n" + "Permanent Bonus Armor: " + (new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);
if (_so != null)
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentBonusArmor", entity)) + "\n" + "Permanent Bonus Armor Toughness: " + (new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);
if (_so != null)
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentBonusArmorToughness", entity) * 0.67) + "\n" + "Permanent Bonus Knockback Resistance: " + (new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);
if (_so != null)
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentBonusKnockbackResistance", entity) * 0.05) + "\n" + "Permanent Fire Resistance: " + (new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);
if (_so != null)
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentFireResistance", entity)) + "\n" + "Permanent Water Breathing: " + (new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);
if (_so != null)
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentWaterBreathing", entity)) + "\n" + "Permanent Creative Flight: " + (new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);

View File

@@ -0,0 +1,89 @@
package net.mcreator.arisrandomadditions.procedures;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.items.IItemHandlerModifiable;
import net.minecraftforge.fluids.capability.IFluidHandler;
import net.minecraftforge.common.capabilities.ForgeCapabilities;
import net.minecraft.world.level.block.state.properties.IntegerProperty;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.level.Level;
import net.minecraft.world.item.Items;
import net.minecraft.world.item.ItemStack;
import net.minecraft.sounds.SoundSource;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.core.BlockPos;
import net.mcreator.arisrandomadditions.init.ArisRandomAdditionsModItems;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.atomic.AtomicInteger;
public class NetherPowerGeneratorDrainLogicProcedure {
public static void execute(LevelAccessor world, double x, double y, double z) {
if (!world.isClientSide()) {
if (new Object() {
public boolean doesBlockHaveTank(LevelAccessor level, BlockPos pos) {
BlockEntity blockEntity = level.getBlockEntity(pos);
if (blockEntity != null) {
return blockEntity.getCapability(ForgeCapabilities.FLUID_HANDLER, null).isPresent();
}
return false;
}
}.doesBlockHaveTank(world, BlockPos.containing(x, y, z))) {
if ((new Object() {
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
return _retval.get();
}
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getItem() == Items.BUCKET) {
{
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
if (_ent != null) {
final int _slotid = 0;
final ItemStack _setstack = new ItemStack(ArisRandomAdditionsModItems.NETHERRACK_JUICE_BUCKET.get()).copy();
_setstack.setCount(1);
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
if (capability instanceof IItemHandlerModifiable)
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
});
}
}
{
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
int _amount = 1000;
if (_ent != null)
_ent.getCapability(ForgeCapabilities.FLUID_HANDLER, null).ifPresent(capability -> capability.drain(_amount, IFluidHandler.FluidAction.EXECUTE));
}
{
int _value = (int) (new Object() {
public int getFluidTankLevel(LevelAccessor level, BlockPos pos, int tank) {
AtomicInteger _retval = new AtomicInteger(0);
BlockEntity _ent = level.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.FLUID_HANDLER, null).ifPresent(capability -> _retval.set(capability.getFluidInTank(tank).getAmount()));
return _retval.get();
}
}.getFluidTankLevel(world, BlockPos.containing(x, y, z), 1) / 1000);
BlockPos _pos = BlockPos.containing(x, y, z);
BlockState _bs = world.getBlockState(_pos);
if (_bs.getBlock().getStateDefinition().getProperty("blockstate") instanceof IntegerProperty _integerProp && _integerProp.getPossibleValues().contains(_value))
world.setBlock(_pos, _bs.setValue(_integerProp, _value), 3);
}
if (world instanceof Level _level) {
if (!_level.isClientSide()) {
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("item.bucket.empty")), SoundSource.BLOCKS, (float) 0.75, 1);
} else {
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("item.bucket.empty")), SoundSource.BLOCKS, (float) 0.75, 1, false);
}
}
}
}
}
}
}

View File

@@ -0,0 +1,31 @@
package net.mcreator.arisrandomadditions.procedures;
import net.minecraftforge.common.capabilities.ForgeCapabilities;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.core.BlockPos;
import java.util.concurrent.atomic.AtomicInteger;
public class NetherPowerGeneratorFluidTankTextUpdateProcedure {
public static String execute(LevelAccessor world, double x, double y, double z) {
return "Fluid Tank: " + (new Object() {
public int getFluidTankLevel(LevelAccessor level, BlockPos pos, int tank) {
AtomicInteger _retval = new AtomicInteger(0);
BlockEntity _ent = level.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.FLUID_HANDLER, null).ifPresent(capability -> _retval.set(capability.getFluidInTank(tank).getAmount()));
return _retval.get();
}
}.getFluidTankLevel(world, BlockPos.containing(x, y, z), 1)) + "/" + (new Object() {
public int getFluidTankCapacity(LevelAccessor level, BlockPos pos, int tank) {
AtomicInteger _retval = new AtomicInteger(0);
BlockEntity _ent = level.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.FLUID_HANDLER, null).ifPresent(capability -> _retval.set(capability.getTankCapacity(tank)));
return _retval.get();
}
}.getFluidTankCapacity(world, BlockPos.containing(x, y, z), 1));
}
}

View File

@@ -0,0 +1,33 @@
package net.mcreator.arisrandomadditions.procedures;
import net.minecraftforge.common.capabilities.ForgeCapabilities;
import net.minecraft.world.level.block.state.properties.IntegerProperty;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.core.BlockPos;
import java.util.concurrent.atomic.AtomicInteger;
public class NetherPowerGeneratorOnTickUpdateProcedure {
public static void execute(LevelAccessor world, double x, double y, double z) {
if (!world.isClientSide()) {
{
int _value = (int) (new Object() {
public int getFluidTankLevel(LevelAccessor level, BlockPos pos, int tank) {
AtomicInteger _retval = new AtomicInteger(0);
BlockEntity _ent = level.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.FLUID_HANDLER, null).ifPresent(capability -> _retval.set(capability.getFluidInTank(tank).getAmount()));
return _retval.get();
}
}.getFluidTankLevel(world, BlockPos.containing(x, y, z), 1) / 1000);
BlockPos _pos = BlockPos.containing(x, y, z);
BlockState _bs = world.getBlockState(_pos);
if (_bs.getBlock().getStateDefinition().getProperty("blockstate") instanceof IntegerProperty _integerProp && _integerProp.getPossibleValues().contains(_value))
world.setBlock(_pos, _bs.setValue(_integerProp, _value), 3);
}
}
}
}

View File

@@ -0,0 +1,91 @@
package net.mcreator.arisrandomadditions.procedures;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.items.IItemHandlerModifiable;
import net.minecraftforge.fluids.capability.IFluidHandler;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.common.capabilities.ForgeCapabilities;
import net.minecraft.world.level.block.state.properties.IntegerProperty;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.level.Level;
import net.minecraft.world.item.Items;
import net.minecraft.world.item.ItemStack;
import net.minecraft.sounds.SoundSource;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.core.BlockPos;
import net.mcreator.arisrandomadditions.init.ArisRandomAdditionsModItems;
import net.mcreator.arisrandomadditions.init.ArisRandomAdditionsModFluids;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.atomic.AtomicInteger;
public class NetherPowerGeneratorRefillLogicProcedure {
public static void execute(LevelAccessor world, double x, double y, double z) {
if (!world.isClientSide()) {
if (new Object() {
public boolean doesBlockHaveTank(LevelAccessor level, BlockPos pos) {
BlockEntity blockEntity = level.getBlockEntity(pos);
if (blockEntity != null) {
return blockEntity.getCapability(ForgeCapabilities.FLUID_HANDLER, null).isPresent();
}
return false;
}
}.doesBlockHaveTank(world, BlockPos.containing(x, y, z))) {
if ((new Object() {
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
return _retval.get();
}
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getItem() == ArisRandomAdditionsModItems.NETHERRACK_JUICE_BUCKET.get()) {
{
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
if (_ent != null) {
final int _slotid = 0;
final ItemStack _setstack = new ItemStack(Items.BUCKET).copy();
_setstack.setCount(1);
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
if (capability instanceof IItemHandlerModifiable)
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
});
}
}
{
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
int _amount = 1000;
if (_ent != null)
_ent.getCapability(ForgeCapabilities.FLUID_HANDLER, null).ifPresent(capability -> capability.fill(new FluidStack(ArisRandomAdditionsModFluids.NETHERRACK_JUICE.get(), _amount), IFluidHandler.FluidAction.EXECUTE));
}
{
int _value = (int) (new Object() {
public int getFluidTankLevel(LevelAccessor level, BlockPos pos, int tank) {
AtomicInteger _retval = new AtomicInteger(0);
BlockEntity _ent = level.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.FLUID_HANDLER, null).ifPresent(capability -> _retval.set(capability.getFluidInTank(tank).getAmount()));
return _retval.get();
}
}.getFluidTankLevel(world, BlockPos.containing(x, y, z), 1) / 1000);
BlockPos _pos = BlockPos.containing(x, y, z);
BlockState _bs = world.getBlockState(_pos);
if (_bs.getBlock().getStateDefinition().getProperty("blockstate") instanceof IntegerProperty _integerProp && _integerProp.getPossibleValues().contains(_value))
world.setBlock(_pos, _bs.setValue(_integerProp, _value), 3);
}
if (world instanceof Level _level) {
if (!_level.isClientSide()) {
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("item.bucket.fill")), SoundSource.BLOCKS, (float) 0.75, 1);
} else {
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("item.bucket.fill")), SoundSource.BLOCKS, (float) 0.75, 1, false);
}
}
}
}
}
}
}

View File

@@ -0,0 +1,49 @@
package net.mcreator.arisrandomadditions.procedures;
import net.minecraft.world.scores.criteria.ObjectiveCriteria;
import net.minecraft.world.scores.Scoreboard;
import net.minecraft.world.scores.Objective;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.ai.attributes.Attributes;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.network.chat.Component;
public class NetheriteApplePlayerFinishesUsingItemProcedure {
public static void execute(LevelAccessor world, Entity entity) {
if (entity == null)
return;
if (!world.isClientSide()) {
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.ABSORPTION, 1400, 1, true, true));
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.SATURATION, 1400, 1, true, true));
if (entity instanceof LivingEntity _livingEntity4 && _livingEntity4.getAttributes().hasAttribute(Attributes.KNOCKBACK_RESISTANCE))
_livingEntity4.getAttribute(Attributes.KNOCKBACK_RESISTANCE).setBaseValue(
((entity instanceof LivingEntity _livingEntity3 && _livingEntity3.getAttributes().hasAttribute(Attributes.KNOCKBACK_RESISTANCE) ? _livingEntity3.getAttribute(Attributes.KNOCKBACK_RESISTANCE).getBaseValue() : 0) + 0.05));
{
Entity _ent = entity;
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective("PermanentBonusKnockbackResistance");
if (_so == null)
_so = _sc.addObjective("PermanentBonusKnockbackResistance", ObjectiveCriteria.DUMMY, Component.literal("PermanentBonusKnockbackResistance"), ObjectiveCriteria.RenderType.INTEGER);
_sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).setScore((int) (new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);
if (_so != null)
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentBonusKnockbackResistance", entity) + 1));
}
if (entity instanceof Player) {
if (entity instanceof Player _player && !_player.level().isClientSide())
_player.displayClientMessage(Component.literal("\u00A77Netherite Apple \u00A7rgranted you bonus Knockback Resistance!"), false);
}
}
}
}

View File

@@ -55,6 +55,40 @@ public class PlayerRespawnUpdatePermanentAttributeModsProcedure {
return 0;
}
}.getScore("PermanentBonusMaxHealth", entity)));
if (entity instanceof LivingEntity _livingEntity9 && _livingEntity9.getAttributes().hasAttribute(Attributes.ARMOR))
_livingEntity9.getAttribute(Attributes.ARMOR)
.setBaseValue(((entity instanceof LivingEntity _livingEntity7 && _livingEntity7.getAttributes().hasAttribute(Attributes.ARMOR) ? _livingEntity7.getAttribute(Attributes.ARMOR).getBaseValue() : 0) + new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);
if (_so != null)
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentBonusArmor", entity)));
if (entity instanceof LivingEntity _livingEntity12 && _livingEntity12.getAttributes().hasAttribute(Attributes.ARMOR_TOUGHNESS))
_livingEntity12.getAttribute(Attributes.ARMOR_TOUGHNESS).setBaseValue(
((entity instanceof LivingEntity _livingEntity10 && _livingEntity10.getAttributes().hasAttribute(Attributes.ARMOR_TOUGHNESS) ? _livingEntity10.getAttribute(Attributes.ARMOR_TOUGHNESS).getBaseValue() : 0) + new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);
if (_so != null)
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentBonusArmorToughness", entity) * 0.67));
if (entity instanceof LivingEntity _livingEntity15 && _livingEntity15.getAttributes().hasAttribute(Attributes.KNOCKBACK_RESISTANCE))
_livingEntity15.getAttribute(Attributes.KNOCKBACK_RESISTANCE).setBaseValue(
((entity instanceof LivingEntity _livingEntity13 && _livingEntity13.getAttributes().hasAttribute(Attributes.KNOCKBACK_RESISTANCE) ? _livingEntity13.getAttribute(Attributes.KNOCKBACK_RESISTANCE).getBaseValue() : 0)
+ new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);
if (_so != null)
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentBonusKnockbackResistance", entity) * 0.05));
if (entity instanceof Player _player) {
_player.getAbilities().mayfly = (new Object() {
public int getScore(String score, Entity _ent) {

View File

@@ -0,0 +1,61 @@
package net.mcreator.arisrandomadditions.procedures;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.eventbus.api.Event;
import net.minecraftforge.event.TickEvent;
import net.minecraft.world.scores.Scoreboard;
import net.minecraft.world.scores.Objective;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.effect.MobEffectInstance;
import javax.annotation.Nullable;
@Mod.EventBusSubscriber
public class PlayerUpdateProcedure {
@SubscribeEvent
public static void onPlayerTick(TickEvent.PlayerTickEvent event) {
if (event.phase == TickEvent.Phase.END) {
execute(event, event.player.level(), event.player);
}
}
public static void execute(LevelAccessor world, Entity entity) {
execute(null, world, entity);
}
private static void execute(@Nullable Event event, LevelAccessor world, Entity entity) {
if (entity == null)
return;
if (!world.isClientSide()) {
if (new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);
if (_so != null)
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentFireResistance", entity) == 1) {
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.FIRE_RESISTANCE, 60, 0, false, false));
}
if (new Object() {
public int getScore(String score, Entity _ent) {
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective(score);
if (_so != null)
return _sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).getScore();
return 0;
}
}.getScore("PermanentWaterBreathing", entity) == 1) {
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.WATER_BREATHING, 60, 0, false, false));
}
}
}
}

View File

@@ -0,0 +1,282 @@
package net.mcreator.arisrandomadditions.procedures;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.items.IItemHandlerModifiable;
import net.minecraftforge.fluids.capability.IFluidHandler;
import net.minecraftforge.common.capabilities.ForgeCapabilities;
import net.minecraft.world.level.block.state.properties.IntegerProperty;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.level.Level;
import net.minecraft.world.item.Items;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.Entity;
import net.minecraft.sounds.SoundSource;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.network.chat.Component;
import net.minecraft.core.BlockPos;
import net.minecraft.advancements.AdvancementProgress;
import net.minecraft.advancements.Advancement;
import net.mcreator.arisrandomadditions.init.ArisRandomAdditionsModItems;
import net.mcreator.arisrandomadditions.init.ArisRandomAdditionsModBlocks;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.atomic.AtomicInteger;
public class StarAssemblyTableAssembleLogicProcedure {
public static void execute(LevelAccessor world, double x, double y, double z, Entity entity) {
if (entity == null)
return;
if (!world.isClientSide()) {
if ((world.getBlockState(BlockPos.containing(x, y - 1, z))).getBlock() == ArisRandomAdditionsModBlocks.NETHER_POWER_GENERATOR.get()) {
if (new Object() {
public int getFluidTankLevel(LevelAccessor level, BlockPos pos, int tank) {
AtomicInteger _retval = new AtomicInteger(0);
BlockEntity _ent = level.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.FLUID_HANDLER, null).ifPresent(capability -> _retval.set(capability.getFluidInTank(tank).getAmount()));
return _retval.get();
}
}.getFluidTankLevel(world, BlockPos.containing(x, y - 1, z), 1) >= 500) {
if ((new Object() {
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
return _retval.get();
}
}.getItemStack(world, BlockPos.containing(x, y, z), 1)).getItem() == ArisRandomAdditionsModItems.LEFT_PIECE_OF_NETHER_STAR.get() && (new Object() {
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
return _retval.get();
}
}.getItemStack(world, BlockPos.containing(x, y, z), 2)).getItem() == ArisRandomAdditionsModItems.TOP_PIECE_OF_NETHER_STAR.get() && (new Object() {
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
return _retval.get();
}
}.getItemStack(world, BlockPos.containing(x, y, z), 3)).getItem() == ArisRandomAdditionsModItems.RIGHT_PIECE_OF_NETHER_STAR.get() && (new Object() {
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
return _retval.get();
}
}.getItemStack(world, BlockPos.containing(x, y, z), 4)).getItem() == ArisRandomAdditionsModItems.BOTTOM_PIECE_OF_NETHER_STAR.get() && ((new Object() {
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
return _retval.get();
}
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getItem() == ItemStack.EMPTY.getItem() || (new Object() {
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
return _retval.get();
}
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getItem() == Items.NETHER_STAR)) {
{
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y - 1, z));
int _amount = 500;
if (_ent != null)
_ent.getCapability(ForgeCapabilities.FLUID_HANDLER, null).ifPresent(capability -> capability.drain(_amount, IFluidHandler.FluidAction.EXECUTE));
}
{
int _value = (int) (new Object() {
public int getFluidTankLevel(LevelAccessor level, BlockPos pos, int tank) {
AtomicInteger _retval = new AtomicInteger(0);
BlockEntity _ent = level.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.FLUID_HANDLER, null).ifPresent(capability -> _retval.set(capability.getFluidInTank(tank).getAmount()));
return _retval.get();
}
}.getFluidTankLevel(world, BlockPos.containing(x, y - 1, z), 1) / 1000);
BlockPos _pos = BlockPos.containing(x, y - 1, z);
BlockState _bs = world.getBlockState(_pos);
if (_bs.getBlock().getStateDefinition().getProperty("blockstate") instanceof IntegerProperty _integerProp && _integerProp.getPossibleValues().contains(_value))
world.setBlock(_pos, _bs.setValue(_integerProp, _value), 3);
}
{
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
if (_ent != null) {
final int _slotid = 1;
final ItemStack _setstack = (new Object() {
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
return _retval.get();
}
}.getItemStack(world, BlockPos.containing(x, y, z), 1)).copy();
_setstack.setCount((int) (new Object() {
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
AtomicInteger _retval = new AtomicInteger(0);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
return _retval.get();
}
}.getAmount(world, BlockPos.containing(x, y, z), 1) - 1));
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
if (capability instanceof IItemHandlerModifiable)
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
});
}
}
{
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
if (_ent != null) {
final int _slotid = 2;
final ItemStack _setstack = (new Object() {
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
return _retval.get();
}
}.getItemStack(world, BlockPos.containing(x, y, z), 2)).copy();
_setstack.setCount((int) (new Object() {
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
AtomicInteger _retval = new AtomicInteger(0);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
return _retval.get();
}
}.getAmount(world, BlockPos.containing(x, y, z), 2) - 1));
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
if (capability instanceof IItemHandlerModifiable)
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
});
}
}
{
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
if (_ent != null) {
final int _slotid = 3;
final ItemStack _setstack = (new Object() {
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
return _retval.get();
}
}.getItemStack(world, BlockPos.containing(x, y, z), 3)).copy();
_setstack.setCount((int) (new Object() {
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
AtomicInteger _retval = new AtomicInteger(0);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
return _retval.get();
}
}.getAmount(world, BlockPos.containing(x, y, z), 3) - 1));
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
if (capability instanceof IItemHandlerModifiable)
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
});
}
}
{
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
if (_ent != null) {
final int _slotid = 4;
final ItemStack _setstack = (new Object() {
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
return _retval.get();
}
}.getItemStack(world, BlockPos.containing(x, y, z), 4)).copy();
_setstack.setCount((int) (new Object() {
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
AtomicInteger _retval = new AtomicInteger(0);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
return _retval.get();
}
}.getAmount(world, BlockPos.containing(x, y, z), 4) - 1));
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
if (capability instanceof IItemHandlerModifiable)
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
});
}
}
{
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
if (_ent != null) {
final int _slotid = 0;
final ItemStack _setstack = new ItemStack(Items.NETHER_STAR).copy();
_setstack.setCount((int) (new Object() {
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
AtomicInteger _retval = new AtomicInteger(0);
BlockEntity _ent = world.getBlockEntity(pos);
if (_ent != null)
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
return _retval.get();
}
}.getAmount(world, BlockPos.containing(x, y, z), 0) + 1));
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
if (capability instanceof IItemHandlerModifiable)
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
});
}
}
if (world instanceof Level _level) {
if (!_level.isClientSide()) {
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.smithing_table.use")), SoundSource.BLOCKS, (float) 0.75, (float) 0.9);
} else {
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.smithing_table.use")), SoundSource.BLOCKS, (float) 0.75, (float) 0.9, false);
}
}
if (!(entity instanceof ServerPlayer _plr35 && _plr35.level() instanceof ServerLevel
&& _plr35.getAdvancements().getOrStartProgress(_plr35.server.getAdvancements().getAdvancement(new ResourceLocation("aris_random_additions:star_assembly_table_advancement"))).isDone())) {
if (entity instanceof ServerPlayer _player) {
Advancement _adv = _player.server.getAdvancements().getAdvancement(new ResourceLocation("aris_random_additions:star_assembly_table_advancement"));
AdvancementProgress _ap = _player.getAdvancements().getOrStartProgress(_adv);
if (!_ap.isDone()) {
for (String criteria : _ap.getRemainingCriteria())
_player.getAdvancements().award(_adv, criteria);
}
}
}
}
} else {
if (entity instanceof Player _player)
_player.closeContainer();
if (entity instanceof Player _player && !_player.level().isClientSide())
_player.displayClientMessage(Component.literal("\u00A7cStar Assembly Table requires at least 500mB of Netherrack Juice in the Nether Power Generator."), false);
}
} else {
if (entity instanceof Player _player)
_player.closeContainer();
if (entity instanceof Player _player && !_player.level().isClientSide())
_player.displayClientMessage(Component.literal("\u00A7cStar Assembly Table requires a Nether Power Generator directly underneath."), false);
}
}
}
}

View File

@@ -0,0 +1,69 @@
package net.mcreator.arisrandomadditions.procedures;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.level.Level;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.resources.ResourceKey;
import net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket;
import net.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacket;
import net.minecraft.network.protocol.game.ClientboundLevelEventPacket;
import net.minecraft.network.protocol.game.ClientboundGameEventPacket;
import net.minecraft.core.BlockPos;
import net.mcreator.arisrandomadditions.ArisRandomAdditionsMod;
public class TasteTheRainbowWaterCanPlayerFinishesUsingItemProcedure {
public static void execute(LevelAccessor world, Entity entity) {
if (entity == null)
return;
if (!world.isClientSide()) {
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.LEVITATION, 200, 49, false, false));
ArisRandomAdditionsMod.queueServerWork(entity instanceof LivingEntity _livEnt && _livEnt.hasEffect(MobEffects.LEVITATION) ? _livEnt.getEffect(MobEffects.LEVITATION).getDuration() : 0, () -> {
if (entity instanceof ServerPlayer _player && !_player.level().isClientSide()) {
ResourceKey<Level> destinationType = Level.END;
if (_player.level().dimension() == destinationType)
return;
ServerLevel nextLevel = _player.server.getLevel(destinationType);
if (nextLevel != null) {
_player.connection.send(new ClientboundGameEventPacket(ClientboundGameEventPacket.WIN_GAME, 0));
_player.teleportTo(nextLevel, _player.getX(), _player.getY(), _player.getZ(), _player.getYRot(), _player.getXRot());
_player.connection.send(new ClientboundPlayerAbilitiesPacket(_player.getAbilities()));
for (MobEffectInstance _effectinstance : _player.getActiveEffects())
_player.connection.send(new ClientboundUpdateMobEffectPacket(_player.getId(), _effectinstance));
_player.connection.send(new ClientboundLevelEventPacket(1032, BlockPos.ZERO, 0, false));
}
}
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.LEVITATION, 200, 49, false, false));
ArisRandomAdditionsMod.queueServerWork(entity instanceof LivingEntity _livEnt && _livEnt.hasEffect(MobEffects.LEVITATION) ? _livEnt.getEffect(MobEffects.LEVITATION).getDuration() : 0, () -> {
if (entity instanceof ServerPlayer _player && !_player.level().isClientSide()) {
ResourceKey<Level> destinationType = Level.OVERWORLD;
if (_player.level().dimension() == destinationType)
return;
ServerLevel nextLevel = _player.server.getLevel(destinationType);
if (nextLevel != null) {
_player.connection.send(new ClientboundGameEventPacket(ClientboundGameEventPacket.WIN_GAME, 0));
_player.teleportTo(nextLevel, _player.getX(), _player.getY(), _player.getZ(), _player.getYRot(), _player.getXRot());
_player.connection.send(new ClientboundPlayerAbilitiesPacket(_player.getAbilities()));
for (MobEffectInstance _effectinstance : _player.getActiveEffects())
_player.connection.send(new ClientboundUpdateMobEffectPacket(_player.getId(), _effectinstance));
_player.connection.send(new ClientboundLevelEventPacket(1032, BlockPos.ZERO, 0, false));
}
}
{
Entity _ent = entity;
_ent.teleportTo(0, 256, 0);
if (_ent instanceof ServerPlayer _serverPlayer)
_serverPlayer.connection.teleport(0, 256, 0, _ent.getYRot(), _ent.getXRot());
}
});
});
}
}
}

View File

@@ -0,0 +1,37 @@
package net.mcreator.arisrandomadditions.procedures;
import net.minecraft.world.scores.criteria.ObjectiveCriteria;
import net.minecraft.world.scores.Scoreboard;
import net.minecraft.world.scores.Objective;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.network.chat.Component;
public class TurtleApplePlayerFinishesUsingItemProcedure {
public static void execute(LevelAccessor world, Entity entity) {
if (entity == null)
return;
if (!world.isClientSide()) {
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.JUMP, 900, 1, true, true));
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.MOVEMENT_SPEED, 900, 1, true, true));
{
Entity _ent = entity;
Scoreboard _sc = _ent.level().getScoreboard();
Objective _so = _sc.getObjective("PermanentWaterBreathing");
if (_so == null)
_so = _sc.addObjective("PermanentWaterBreathing", ObjectiveCriteria.DUMMY, Component.literal("PermanentWaterBreathing"), ObjectiveCriteria.RenderType.INTEGER);
_sc.getOrCreatePlayerScore(_ent.getScoreboardName(), _so).setScore(1);
}
if (entity instanceof Player) {
if (entity instanceof Player _player && !_player.level().isClientSide())
_player.displayClientMessage(Component.literal("\u00A7aTurtle Apple \u00A7rgranted you permanent Water Breathing!"), false);
}
}
}
}

View File

@@ -18,31 +18,33 @@ public class WandOfResizingRightclickedProcedure {
public static void execute(LevelAccessor world, double x, double y, double z, Entity entity, ItemStack itemstack) {
if (entity == null)
return;
if (entity.isShiftKeyDown()) {
if (ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale() > 0.26 && ScaleTypes.WIDTH.getScaleData(entity).getTargetScale() > 0.26) {
if (entity instanceof Player _player)
_player.getCooldowns().addCooldown(itemstack.getItem(), 70);
ScaleTypes.HEIGHT.getScaleData(entity).setTargetScale((float) ScaleOperations.SET.applyAsDouble(ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale(), (ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale() / 2)));
ScaleTypes.WIDTH.getScaleData(entity).setTargetScale((float) ScaleOperations.SET.applyAsDouble(ScaleTypes.WIDTH.getScaleData(entity).getTargetScale(), (ScaleTypes.WIDTH.getScaleData(entity).getTargetScale() / 2)));
if (world instanceof Level _level) {
if (!_level.isClientSide()) {
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.beacon.activate")), SoundSource.BLOCKS, (float) 0.85, (float) 1.2);
} else {
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.beacon.activate")), SoundSource.BLOCKS, (float) 0.85, (float) 1.2, false);
if (!world.isClientSide()) {
if (entity.isShiftKeyDown()) {
if (ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale() > 0.07 && ScaleTypes.WIDTH.getScaleData(entity).getTargetScale() > 0.07) {
if (entity instanceof Player _player)
_player.getCooldowns().addCooldown(itemstack.getItem(), 55);
ScaleTypes.HEIGHT.getScaleData(entity).setTargetScale((float) ScaleOperations.SET.applyAsDouble(ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale(), (ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale() / 2)));
ScaleTypes.WIDTH.getScaleData(entity).setTargetScale((float) ScaleOperations.SET.applyAsDouble(ScaleTypes.WIDTH.getScaleData(entity).getTargetScale(), (ScaleTypes.WIDTH.getScaleData(entity).getTargetScale() / 2)));
if (world instanceof Level _level) {
if (!_level.isClientSide()) {
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.beacon.activate")), SoundSource.BLOCKS, (float) 0.85, (float) 1.2);
} else {
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.beacon.activate")), SoundSource.BLOCKS, (float) 0.85, (float) 1.2, false);
}
}
}
}
} else {
if (ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale() < 1.99 && ScaleTypes.WIDTH.getScaleData(entity).getTargetScale() < 1.99) {
if (entity instanceof Player _player)
_player.getCooldowns().addCooldown(itemstack.getItem(), 70);
ScaleTypes.HEIGHT.getScaleData(entity).setTargetScale((float) ScaleOperations.SET.applyAsDouble(ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale(), (ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale() * 2)));
ScaleTypes.WIDTH.getScaleData(entity).setTargetScale((float) ScaleOperations.SET.applyAsDouble(ScaleTypes.WIDTH.getScaleData(entity).getTargetScale(), (ScaleTypes.WIDTH.getScaleData(entity).getTargetScale() * 2)));
if (world instanceof Level _level) {
if (!_level.isClientSide()) {
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.beacon.activate")), SoundSource.BLOCKS, (float) 0.85, (float) 0.8);
} else {
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.beacon.activate")), SoundSource.BLOCKS, (float) 0.85, (float) 0.8, false);
} else {
if (ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale() < 3.99 && ScaleTypes.WIDTH.getScaleData(entity).getTargetScale() < 3.99) {
if (entity instanceof Player _player)
_player.getCooldowns().addCooldown(itemstack.getItem(), 55);
ScaleTypes.HEIGHT.getScaleData(entity).setTargetScale((float) ScaleOperations.SET.applyAsDouble(ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale(), (ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale() * 2)));
ScaleTypes.WIDTH.getScaleData(entity).setTargetScale((float) ScaleOperations.SET.applyAsDouble(ScaleTypes.WIDTH.getScaleData(entity).getTargetScale(), (ScaleTypes.WIDTH.getScaleData(entity).getTargetScale() * 2)));
if (world instanceof Level _level) {
if (!_level.isClientSide()) {
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.beacon.activate")), SoundSource.BLOCKS, (float) 0.85, (float) 0.8);
} else {
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.beacon.activate")), SoundSource.BLOCKS, (float) 0.85, (float) 0.8, false);
}
}
}
}

View File

@@ -0,0 +1,40 @@
package net.mcreator.arisrandomadditions.recipes.brewing;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.common.brewing.IBrewingRecipe;
import net.minecraftforge.common.brewing.BrewingRecipeRegistry;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraft.world.item.ItemStack;
import net.mcreator.arisrandomadditions.init.ArisRandomAdditionsModItems;
import net.mcreator.arisrandomadditions.init.ArisRandomAdditionsModBlocks;
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class TasteTheRainbowWaterCanRecipeBrewingRecipe implements IBrewingRecipe {
@SubscribeEvent
public static void init(FMLCommonSetupEvent event) {
event.enqueueWork(() -> BrewingRecipeRegistry.addRecipe(new TasteTheRainbowWaterCanRecipeBrewingRecipe()));
}
@Override
public boolean isInput(ItemStack input) {
return Ingredient.of(new ItemStack(ArisRandomAdditionsModItems.SWEETENED_CARBONATED_WATER_CAN.get())).test(input);
}
@Override
public boolean isIngredient(ItemStack ingredient) {
return Ingredient.of(new ItemStack(ArisRandomAdditionsModBlocks.RAVE_BLOCK.get())).test(ingredient);
}
@Override
public ItemStack getOutput(ItemStack input, ItemStack ingredient) {
if (isInput(input) && isIngredient(ingredient)) {
return new ItemStack(ArisRandomAdditionsModItems.TASTE_THE_RAINBOW_WATER_CAN.get());
}
return ItemStack.EMPTY;
}
}

View File

@@ -0,0 +1,243 @@
package net.mcreator.arisrandomadditions.world.inventory;
import net.minecraftforge.items.SlotItemHandler;
import net.minecraftforge.items.ItemStackHandler;
import net.minecraftforge.items.IItemHandler;
import net.minecraftforge.common.capabilities.ForgeCapabilities;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.Level;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.inventory.Slot;
import net.minecraft.world.inventory.ContainerLevelAccess;
import net.minecraft.world.inventory.AbstractContainerMenu;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.entity.Entity;
import net.minecraft.tags.ItemTags;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.core.BlockPos;
import net.mcreator.arisrandomadditions.init.ArisRandomAdditionsModMenus;
import java.util.function.Supplier;
import java.util.Map;
import java.util.HashMap;
public class NetherPowerGeneratorGUIMenu extends AbstractContainerMenu implements Supplier<Map<Integer, Slot>> {
public final static HashMap<String, Object> guistate = new HashMap<>();
public final Level world;
public final Player entity;
public int x, y, z;
private ContainerLevelAccess access = ContainerLevelAccess.NULL;
private IItemHandler internal;
private final Map<Integer, Slot> customSlots = new HashMap<>();
private boolean bound = false;
private Supplier<Boolean> boundItemMatcher = null;
private Entity boundEntity = null;
private BlockEntity boundBlockEntity = null;
public NetherPowerGeneratorGUIMenu(int id, Inventory inv, FriendlyByteBuf extraData) {
super(ArisRandomAdditionsModMenus.NETHER_POWER_GENERATOR_GUI.get(), id);
this.entity = inv.player;
this.world = inv.player.level();
this.internal = new ItemStackHandler(1);
BlockPos pos = null;
if (extraData != null) {
pos = extraData.readBlockPos();
this.x = pos.getX();
this.y = pos.getY();
this.z = pos.getZ();
access = ContainerLevelAccess.create(world, pos);
}
if (pos != null) {
if (extraData.readableBytes() == 1) { // bound to item
byte hand = extraData.readByte();
ItemStack itemstack = hand == 0 ? this.entity.getMainHandItem() : this.entity.getOffhandItem();
this.boundItemMatcher = () -> itemstack == (hand == 0 ? this.entity.getMainHandItem() : this.entity.getOffhandItem());
itemstack.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
this.internal = capability;
this.bound = true;
});
} else if (extraData.readableBytes() > 1) { // bound to entity
extraData.readByte(); // drop padding
boundEntity = world.getEntity(extraData.readVarInt());
if (boundEntity != null)
boundEntity.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
this.internal = capability;
this.bound = true;
});
} else { // might be bound to block
boundBlockEntity = this.world.getBlockEntity(pos);
if (boundBlockEntity != null)
boundBlockEntity.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
this.internal = capability;
this.bound = true;
});
}
}
this.customSlots.put(0, this.addSlot(new SlotItemHandler(internal, 0, 79, 31) {
private final int slot = 0;
private int x = NetherPowerGeneratorGUIMenu.this.x;
private int y = NetherPowerGeneratorGUIMenu.this.y;
@Override
public boolean mayPlace(ItemStack stack) {
return stack.is(ItemTags.create(new ResourceLocation("aris_random_additions:nether_power_generator_acceptable_inputs")));
}
}));
for (int si = 0; si < 3; ++si)
for (int sj = 0; sj < 9; ++sj)
this.addSlot(new Slot(inv, sj + (si + 1) * 9, 0 + 8 + sj * 18, 23 + 84 + si * 18));
for (int si = 0; si < 9; ++si)
this.addSlot(new Slot(inv, si, 0 + 8 + si * 18, 23 + 142));
}
@Override
public boolean stillValid(Player player) {
if (this.bound) {
if (this.boundItemMatcher != null)
return this.boundItemMatcher.get();
else if (this.boundBlockEntity != null)
return AbstractContainerMenu.stillValid(this.access, player, this.boundBlockEntity.getBlockState().getBlock());
else if (this.boundEntity != null)
return this.boundEntity.isAlive();
}
return true;
}
@Override
public ItemStack quickMoveStack(Player playerIn, int index) {
ItemStack itemstack = ItemStack.EMPTY;
Slot slot = (Slot) this.slots.get(index);
if (slot != null && slot.hasItem()) {
ItemStack itemstack1 = slot.getItem();
itemstack = itemstack1.copy();
if (index < 1) {
if (!this.moveItemStackTo(itemstack1, 1, this.slots.size(), true))
return ItemStack.EMPTY;
slot.onQuickCraft(itemstack1, itemstack);
} else if (!this.moveItemStackTo(itemstack1, 0, 1, false)) {
if (index < 1 + 27) {
if (!this.moveItemStackTo(itemstack1, 1 + 27, this.slots.size(), true))
return ItemStack.EMPTY;
} else {
if (!this.moveItemStackTo(itemstack1, 1, 1 + 27, false))
return ItemStack.EMPTY;
}
return ItemStack.EMPTY;
}
if (itemstack1.getCount() == 0)
slot.set(ItemStack.EMPTY);
else
slot.setChanged();
if (itemstack1.getCount() == itemstack.getCount())
return ItemStack.EMPTY;
slot.onTake(playerIn, itemstack1);
}
return itemstack;
}
@Override
protected boolean moveItemStackTo(ItemStack p_38904_, int p_38905_, int p_38906_, boolean p_38907_) {
boolean flag = false;
int i = p_38905_;
if (p_38907_) {
i = p_38906_ - 1;
}
if (p_38904_.isStackable()) {
while (!p_38904_.isEmpty()) {
if (p_38907_) {
if (i < p_38905_) {
break;
}
} else if (i >= p_38906_) {
break;
}
Slot slot = this.slots.get(i);
ItemStack itemstack = slot.getItem();
if (slot.mayPlace(itemstack) && !itemstack.isEmpty() && ItemStack.isSameItemSameTags(p_38904_, itemstack)) {
int j = itemstack.getCount() + p_38904_.getCount();
int maxSize = Math.min(slot.getMaxStackSize(), p_38904_.getMaxStackSize());
if (j <= maxSize) {
p_38904_.setCount(0);
itemstack.setCount(j);
slot.set(itemstack);
flag = true;
} else if (itemstack.getCount() < maxSize) {
p_38904_.shrink(maxSize - itemstack.getCount());
itemstack.setCount(maxSize);
slot.set(itemstack);
flag = true;
}
}
if (p_38907_) {
--i;
} else {
++i;
}
}
}
if (!p_38904_.isEmpty()) {
if (p_38907_) {
i = p_38906_ - 1;
} else {
i = p_38905_;
}
while (true) {
if (p_38907_) {
if (i < p_38905_) {
break;
}
} else if (i >= p_38906_) {
break;
}
Slot slot1 = this.slots.get(i);
ItemStack itemstack1 = slot1.getItem();
if (itemstack1.isEmpty() && slot1.mayPlace(p_38904_)) {
if (p_38904_.getCount() > slot1.getMaxStackSize()) {
slot1.setByPlayer(p_38904_.split(slot1.getMaxStackSize()));
} else {
slot1.setByPlayer(p_38904_.split(p_38904_.getCount()));
}
slot1.setChanged();
flag = true;
break;
}
if (p_38907_) {
--i;
} else {
++i;
}
}
}
return flag;
}
@Override
public void removed(Player playerIn) {
super.removed(playerIn);
if (!bound && playerIn instanceof ServerPlayer serverPlayer) {
if (!serverPlayer.isAlive() || serverPlayer.hasDisconnected()) {
for (int j = 0; j < internal.getSlots(); ++j) {
if (j == 0)
continue;
playerIn.drop(internal.extractItem(j, internal.getStackInSlot(j).getCount(), false), false);
}
} else {
for (int i = 0; i < internal.getSlots(); ++i) {
if (i == 0)
continue;
playerIn.getInventory().placeItemBackInInventory(internal.extractItem(i, internal.getStackInSlot(i).getCount(), false));
}
}
}
}
public Map<Integer, Slot> get() {
return customSlots;
}
}

View File

@@ -0,0 +1,298 @@
package net.mcreator.arisrandomadditions.world.inventory;
import net.minecraftforge.items.SlotItemHandler;
import net.minecraftforge.items.ItemStackHandler;
import net.minecraftforge.items.IItemHandler;
import net.minecraftforge.common.capabilities.ForgeCapabilities;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.Level;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.inventory.Slot;
import net.minecraft.world.inventory.ContainerLevelAccess;
import net.minecraft.world.inventory.AbstractContainerMenu;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.entity.Entity;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.core.BlockPos;
import net.mcreator.arisrandomadditions.init.ArisRandomAdditionsModMenus;
import net.mcreator.arisrandomadditions.init.ArisRandomAdditionsModItems;
import java.util.function.Supplier;
import java.util.Map;
import java.util.HashMap;
public class StarAssemblyTableGUIMenu extends AbstractContainerMenu implements Supplier<Map<Integer, Slot>> {
public final static HashMap<String, Object> guistate = new HashMap<>();
public final Level world;
public final Player entity;
public int x, y, z;
private ContainerLevelAccess access = ContainerLevelAccess.NULL;
private IItemHandler internal;
private final Map<Integer, Slot> customSlots = new HashMap<>();
private boolean bound = false;
private Supplier<Boolean> boundItemMatcher = null;
private Entity boundEntity = null;
private BlockEntity boundBlockEntity = null;
public StarAssemblyTableGUIMenu(int id, Inventory inv, FriendlyByteBuf extraData) {
super(ArisRandomAdditionsModMenus.STAR_ASSEMBLY_TABLE_GUI.get(), id);
this.entity = inv.player;
this.world = inv.player.level();
this.internal = new ItemStackHandler(5);
BlockPos pos = null;
if (extraData != null) {
pos = extraData.readBlockPos();
this.x = pos.getX();
this.y = pos.getY();
this.z = pos.getZ();
access = ContainerLevelAccess.create(world, pos);
}
if (pos != null) {
if (extraData.readableBytes() == 1) { // bound to item
byte hand = extraData.readByte();
ItemStack itemstack = hand == 0 ? this.entity.getMainHandItem() : this.entity.getOffhandItem();
this.boundItemMatcher = () -> itemstack == (hand == 0 ? this.entity.getMainHandItem() : this.entity.getOffhandItem());
itemstack.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
this.internal = capability;
this.bound = true;
});
} else if (extraData.readableBytes() > 1) { // bound to entity
extraData.readByte(); // drop padding
boundEntity = world.getEntity(extraData.readVarInt());
if (boundEntity != null)
boundEntity.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
this.internal = capability;
this.bound = true;
});
} else { // might be bound to block
boundBlockEntity = this.world.getBlockEntity(pos);
if (boundBlockEntity != null)
boundBlockEntity.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
this.internal = capability;
this.bound = true;
});
}
}
this.customSlots.put(1, this.addSlot(new SlotItemHandler(internal, 1, 64, 53) {
private final int slot = 1;
private int x = StarAssemblyTableGUIMenu.this.x;
private int y = StarAssemblyTableGUIMenu.this.y;
@Override
public boolean mayPlace(ItemStack stack) {
return ArisRandomAdditionsModItems.LEFT_PIECE_OF_NETHER_STAR.get() == stack.getItem();
}
}));
this.customSlots.put(2, this.addSlot(new SlotItemHandler(internal, 2, 91, 26) {
private final int slot = 2;
private int x = StarAssemblyTableGUIMenu.this.x;
private int y = StarAssemblyTableGUIMenu.this.y;
@Override
public boolean mayPlace(ItemStack stack) {
return ArisRandomAdditionsModItems.TOP_PIECE_OF_NETHER_STAR.get() == stack.getItem();
}
}));
this.customSlots.put(3, this.addSlot(new SlotItemHandler(internal, 3, 118, 53) {
private final int slot = 3;
private int x = StarAssemblyTableGUIMenu.this.x;
private int y = StarAssemblyTableGUIMenu.this.y;
@Override
public boolean mayPlace(ItemStack stack) {
return ArisRandomAdditionsModItems.RIGHT_PIECE_OF_NETHER_STAR.get() == stack.getItem();
}
}));
this.customSlots.put(4, this.addSlot(new SlotItemHandler(internal, 4, 91, 80) {
private final int slot = 4;
private int x = StarAssemblyTableGUIMenu.this.x;
private int y = StarAssemblyTableGUIMenu.this.y;
@Override
public boolean mayPlace(ItemStack stack) {
return ArisRandomAdditionsModItems.BOTTOM_PIECE_OF_NETHER_STAR.get() == stack.getItem();
}
}));
this.customSlots.put(0, this.addSlot(new SlotItemHandler(internal, 0, 91, 53) {
private final int slot = 0;
private int x = StarAssemblyTableGUIMenu.this.x;
private int y = StarAssemblyTableGUIMenu.this.y;
@Override
public boolean mayPlace(ItemStack stack) {
return false;
}
}));
for (int si = 0; si < 3; ++si)
for (int sj = 0; sj < 9; ++sj)
this.addSlot(new Slot(inv, sj + (si + 1) * 9, 12 + 8 + sj * 18, 27 + 84 + si * 18));
for (int si = 0; si < 9; ++si)
this.addSlot(new Slot(inv, si, 12 + 8 + si * 18, 27 + 142));
}
@Override
public boolean stillValid(Player player) {
if (this.bound) {
if (this.boundItemMatcher != null)
return this.boundItemMatcher.get();
else if (this.boundBlockEntity != null)
return AbstractContainerMenu.stillValid(this.access, player, this.boundBlockEntity.getBlockState().getBlock());
else if (this.boundEntity != null)
return this.boundEntity.isAlive();
}
return true;
}
@Override
public ItemStack quickMoveStack(Player playerIn, int index) {
ItemStack itemstack = ItemStack.EMPTY;
Slot slot = (Slot) this.slots.get(index);
if (slot != null && slot.hasItem()) {
ItemStack itemstack1 = slot.getItem();
itemstack = itemstack1.copy();
if (index < 5) {
if (!this.moveItemStackTo(itemstack1, 5, this.slots.size(), true))
return ItemStack.EMPTY;
slot.onQuickCraft(itemstack1, itemstack);
} else if (!this.moveItemStackTo(itemstack1, 0, 5, false)) {
if (index < 5 + 27) {
if (!this.moveItemStackTo(itemstack1, 5 + 27, this.slots.size(), true))
return ItemStack.EMPTY;
} else {
if (!this.moveItemStackTo(itemstack1, 5, 5 + 27, false))
return ItemStack.EMPTY;
}
return ItemStack.EMPTY;
}
if (itemstack1.getCount() == 0)
slot.set(ItemStack.EMPTY);
else
slot.setChanged();
if (itemstack1.getCount() == itemstack.getCount())
return ItemStack.EMPTY;
slot.onTake(playerIn, itemstack1);
}
return itemstack;
}
@Override
protected boolean moveItemStackTo(ItemStack p_38904_, int p_38905_, int p_38906_, boolean p_38907_) {
boolean flag = false;
int i = p_38905_;
if (p_38907_) {
i = p_38906_ - 1;
}
if (p_38904_.isStackable()) {
while (!p_38904_.isEmpty()) {
if (p_38907_) {
if (i < p_38905_) {
break;
}
} else if (i >= p_38906_) {
break;
}
Slot slot = this.slots.get(i);
ItemStack itemstack = slot.getItem();
if (slot.mayPlace(itemstack) && !itemstack.isEmpty() && ItemStack.isSameItemSameTags(p_38904_, itemstack)) {
int j = itemstack.getCount() + p_38904_.getCount();
int maxSize = Math.min(slot.getMaxStackSize(), p_38904_.getMaxStackSize());
if (j <= maxSize) {
p_38904_.setCount(0);
itemstack.setCount(j);
slot.set(itemstack);
flag = true;
} else if (itemstack.getCount() < maxSize) {
p_38904_.shrink(maxSize - itemstack.getCount());
itemstack.setCount(maxSize);
slot.set(itemstack);
flag = true;
}
}
if (p_38907_) {
--i;
} else {
++i;
}
}
}
if (!p_38904_.isEmpty()) {
if (p_38907_) {
i = p_38906_ - 1;
} else {
i = p_38905_;
}
while (true) {
if (p_38907_) {
if (i < p_38905_) {
break;
}
} else if (i >= p_38906_) {
break;
}
Slot slot1 = this.slots.get(i);
ItemStack itemstack1 = slot1.getItem();
if (itemstack1.isEmpty() && slot1.mayPlace(p_38904_)) {
if (p_38904_.getCount() > slot1.getMaxStackSize()) {
slot1.setByPlayer(p_38904_.split(slot1.getMaxStackSize()));
} else {
slot1.setByPlayer(p_38904_.split(p_38904_.getCount()));
}
slot1.setChanged();
flag = true;
break;
}
if (p_38907_) {
--i;
} else {
++i;
}
}
}
return flag;
}
@Override
public void removed(Player playerIn) {
super.removed(playerIn);
if (!bound && playerIn instanceof ServerPlayer serverPlayer) {
if (!serverPlayer.isAlive() || serverPlayer.hasDisconnected()) {
for (int j = 0; j < internal.getSlots(); ++j) {
if (j == 1)
continue;
if (j == 2)
continue;
if (j == 3)
continue;
if (j == 4)
continue;
if (j == 0)
continue;
playerIn.drop(internal.extractItem(j, internal.getStackInSlot(j).getCount(), false), false);
}
} else {
for (int i = 0; i < internal.getSlots(); ++i) {
if (i == 1)
continue;
if (i == 2)
continue;
if (i == 3)
continue;
if (i == 4)
continue;
if (i == 0)
continue;
playerIn.getInventory().placeItemBackInInventory(internal.extractItem(i, internal.getStackInSlot(i).getCount(), false));
}
}
}
}
public Map<Integer, Slot> get() {
return customSlots;
}
}

View File

@@ -4,7 +4,7 @@ license="MIT License"
[[mods]]
modId="aris_random_additions"
version="2.2.0"
version="2.3.0"
displayName="Ari's Random Additions"
displayURL="https://mcreator.net"
logoFile="logo.png"

View File

@@ -0,0 +1,118 @@
{
"variants": {
"face=floor,facing=east,powered=false": {
"model": "aris_random_additions:block/anaheim_button",
"y": 90
},
"face=floor,facing=west,powered=false": {
"model": "aris_random_additions:block/anaheim_button",
"y": 270
},
"face=floor,facing=south,powered=false": {
"model": "aris_random_additions:block/anaheim_button",
"y": 180
},
"face=floor,facing=north,powered=false": {
"model": "aris_random_additions:block/anaheim_button"
},
"face=wall,facing=east,powered=false": {
"model": "aris_random_additions:block/anaheim_button",
"uvlock": true,
"x": 90,
"y": 90
},
"face=wall,facing=west,powered=false": {
"model": "aris_random_additions:block/anaheim_button",
"uvlock": true,
"x": 90,
"y": 270
},
"face=wall,facing=south,powered=false": {
"model": "aris_random_additions:block/anaheim_button",
"uvlock": true,
"x": 90,
"y": 180
},
"face=wall,facing=north,powered=false": {
"model": "aris_random_additions:block/anaheim_button",
"uvlock": true,
"x": 90
},
"face=ceiling,facing=east,powered=false": {
"model": "aris_random_additions:block/anaheim_button",
"x": 180,
"y": 270
},
"face=ceiling,facing=west,powered=false": {
"model": "aris_random_additions:block/anaheim_button",
"x": 180,
"y": 90
},
"face=ceiling,facing=south,powered=false": {
"model": "aris_random_additions:block/anaheim_button",
"x": 180
},
"face=ceiling,facing=north,powered=false": {
"model": "aris_random_additions:block/anaheim_button",
"x": 180,
"y": 180
},
"face=floor,facing=east,powered=true": {
"model": "aris_random_additions:block/anaheim_button_pressed",
"y": 90
},
"face=floor,facing=west,powered=true": {
"model": "aris_random_additions:block/anaheim_button_pressed",
"y": 270
},
"face=floor,facing=south,powered=true": {
"model": "aris_random_additions:block/anaheim_button_pressed",
"y": 180
},
"face=floor,facing=north,powered=true": {
"model": "aris_random_additions:block/anaheim_button_pressed"
},
"face=wall,facing=east,powered=true": {
"model": "aris_random_additions:block/anaheim_button_pressed",
"uvlock": true,
"x": 90,
"y": 90
},
"face=wall,facing=west,powered=true": {
"model": "aris_random_additions:block/anaheim_button_pressed",
"uvlock": true,
"x": 90,
"y": 270
},
"face=wall,facing=south,powered=true": {
"model": "aris_random_additions:block/anaheim_button_pressed",
"uvlock": true,
"x": 90,
"y": 180
},
"face=wall,facing=north,powered=true": {
"model": "aris_random_additions:block/anaheim_button_pressed",
"uvlock": true,
"x": 90
},
"face=ceiling,facing=east,powered=true": {
"model": "aris_random_additions:block/anaheim_button_pressed",
"x": 180,
"y": 270
},
"face=ceiling,facing=west,powered=true": {
"model": "aris_random_additions:block/anaheim_button_pressed",
"x": 180,
"y": 90
},
"face=ceiling,facing=south,powered=true": {
"model": "aris_random_additions:block/anaheim_button_pressed",
"x": 180
},
"face=ceiling,facing=north,powered=true": {
"model": "aris_random_additions:block/anaheim_button_pressed",
"x": 180,
"y": 180
}
}
}

View File

@@ -0,0 +1,48 @@
{
"multipart": [
{
"apply": {
"model": "aris_random_additions:block/anaheim_fence_post"
}
},
{
"when": {
"north": "true"
},
"apply": {
"model": "aris_random_additions:block/anaheim_fence",
"uvlock": true
}
},
{
"when": {
"south": "true"
},
"apply": {
"model": "aris_random_additions:block/anaheim_fence",
"y": 180,
"uvlock": true
}
},
{
"when": {
"west": "true"
},
"apply": {
"model": "aris_random_additions:block/anaheim_fence",
"y": 270,
"uvlock": true
}
},
{
"when": {
"east": "true"
},
"apply": {
"model": "aris_random_additions:block/anaheim_fence",
"y": 90,
"uvlock": true
}
}
]
}

View File

@@ -0,0 +1,80 @@
{
"variants": {
"facing=south,in_wall=false,open=false": {
"model": "aris_random_additions:block/anaheim_fence_gate",
"uvlock": true
},
"facing=west,in_wall=false,open=false": {
"model": "aris_random_additions:block/anaheim_fence_gate",
"uvlock": true,
"y": 90
},
"facing=north,in_wall=false,open=false": {
"model": "aris_random_additions:block/anaheim_fence_gate",
"uvlock": true,
"y": 180
},
"facing=east,in_wall=false,open=false": {
"model": "aris_random_additions:block/anaheim_fence_gate",
"uvlock": true,
"y": 270
},
"facing=south,in_wall=false,open=true": {
"model": "aris_random_additions:block/anaheim_fence_gate_open",
"uvlock": true
},
"facing=west,in_wall=false,open=true": {
"model": "aris_random_additions:block/anaheim_fence_gate_open",
"uvlock": true,
"y": 90
},
"facing=north,in_wall=false,open=true": {
"model": "aris_random_additions:block/anaheim_fence_gate_open",
"uvlock": true,
"y": 180
},
"facing=east,in_wall=false,open=true": {
"model": "aris_random_additions:block/anaheim_fence_gate_open",
"uvlock": true,
"y": 270
},
"facing=south,in_wall=true,open=false": {
"model": "aris_random_additions:block/anaheim_fence_gate_wall",
"uvlock": true
},
"facing=west,in_wall=true,open=false": {
"model": "aris_random_additions:block/anaheim_fence_gate_wall",
"uvlock": true,
"y": 90
},
"facing=north,in_wall=true,open=false": {
"model": "aris_random_additions:block/anaheim_fence_gate_wall",
"uvlock": true,
"y": 180
},
"facing=east,in_wall=true,open=false": {
"model": "aris_random_additions:block/anaheim_fence_gate_wall",
"uvlock": true,
"y": 270
},
"facing=south,in_wall=true,open=true": {
"model": "aris_random_additions:block/anaheim_fence_gate_wall_open",
"uvlock": true
},
"facing=west,in_wall=true,open=true": {
"model": "aris_random_additions:block/anaheim_fence_gate_wall_open",
"uvlock": true,
"y": 90
},
"facing=north,in_wall=true,open=true": {
"model": "aris_random_additions:block/anaheim_fence_gate_wall_open",
"uvlock": true,
"y": 180
},
"facing=east,in_wall=true,open=true": {
"model": "aris_random_additions:block/anaheim_fence_gate_wall_open",
"uvlock": true,
"y": 270
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "aris_random_additions:block/anaheim_leaves"
}
}
}

View File

@@ -0,0 +1,16 @@
{
"variants": {
"axis=x": {
"model": "aris_random_additions:block/anaheim_log",
"x": 90,
"y": 90
},
"axis=y": {
"model": "aris_random_additions:block/anaheim_log"
},
"axis=z": {
"model": "aris_random_additions:block/anaheim_log",
"x": 90
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "aris_random_additions:block/anaheim_planks"
}
}
}

View File

@@ -0,0 +1,10 @@
{
"variants": {
"powered=false": {
"model": "aris_random_additions:block/anaheim_pressure_plate"
},
"powered=true": {
"model": "aris_random_additions:block/anaheim_pressure_plate_down"
}
}
}

View File

@@ -0,0 +1,13 @@
{
"variants": {
"type=bottom": {
"model": "aris_random_additions:block/anaheim_slab"
},
"type=top": {
"model": "aris_random_additions:block/anaheim_slab_top"
},
"type=double": {
"model": "aris_random_additions:block/anaheim_slab_full"
}
}
}

View File

@@ -0,0 +1,209 @@
{
"variants": {
"facing=east,half=bottom,shape=straight": {
"model": "aris_random_additions:block/anaheim_stairs"
},
"facing=west,half=bottom,shape=straight": {
"model": "aris_random_additions:block/anaheim_stairs",
"y": 180,
"uvlock": true
},
"facing=south,half=bottom,shape=straight": {
"model": "aris_random_additions:block/anaheim_stairs",
"y": 90,
"uvlock": true
},
"facing=north,half=bottom,shape=straight": {
"model": "aris_random_additions:block/anaheim_stairs",
"y": 270,
"uvlock": true
},
"facing=east,half=bottom,shape=inner_right": {
"model": "aris_random_additions:block/anaheim_stairs_inner"
},
"facing=west,half=bottom,shape=inner_right": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"y": 180,
"uvlock": true
},
"facing=south,half=bottom,shape=inner_right": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"y": 90,
"uvlock": true
},
"facing=north,half=bottom,shape=inner_right": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"y": 270,
"uvlock": true
},
"facing=east,half=bottom,shape=inner_left": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"y": 270,
"uvlock": true
},
"facing=west,half=bottom,shape=inner_left": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"y": 90,
"uvlock": true
},
"facing=south,half=bottom,shape=inner_left": {
"model": "aris_random_additions:block/anaheim_stairs_inner"
},
"facing=north,half=bottom,shape=inner_left": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"y": 180,
"uvlock": true
},
"facing=east,half=top,shape=straight": {
"model": "aris_random_additions:block/anaheim_stairs",
"x": 180,
"uvlock": true
},
"facing=west,half=top,shape=straight": {
"model": "aris_random_additions:block/anaheim_stairs",
"x": 180,
"y": 180,
"uvlock": true
},
"facing=south,half=top,shape=straight": {
"model": "aris_random_additions:block/anaheim_stairs",
"x": 180,
"y": 90,
"uvlock": true
},
"facing=north,half=top,shape=straight": {
"model": "aris_random_additions:block/anaheim_stairs",
"x": 180,
"y": 270,
"uvlock": true
},
"facing=east,half=top,shape=outer_right": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"x": 180,
"y": 90,
"uvlock": true
},
"facing=west,half=top,shape=outer_right": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"x": 180,
"y": 270,
"uvlock": true
},
"facing=south,half=top,shape=outer_right": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"x": 180,
"y": 180,
"uvlock": true
},
"facing=north,half=top,shape=outer_right": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"x": 180,
"uvlock": true
},
"facing=east,half=top,shape=outer_left": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"x": 180,
"uvlock": true
},
"facing=west,half=top,shape=outer_left": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"x": 180,
"y": 180,
"uvlock": true
},
"facing=south,half=top,shape=outer_left": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"x": 180,
"y": 90,
"uvlock": true
},
"facing=north,half=top,shape=outer_left": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"x": 180,
"y": 270,
"uvlock": true
},
"facing=east,half=top,shape=inner_right": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"x": 180,
"y": 90,
"uvlock": true
},
"facing=west,half=top,shape=inner_right": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"x": 180,
"y": 270,
"uvlock": true
},
"facing=south,half=top,shape=inner_right": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"x": 180,
"y": 180,
"uvlock": true
},
"facing=north,half=top,shape=inner_right": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"x": 180,
"uvlock": true
},
"facing=east,half=top,shape=inner_left": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"x": 180,
"uvlock": true
},
"facing=west,half=top,shape=inner_left": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"x": 180,
"y": 180,
"uvlock": true
},
"facing=south,half=top,shape=inner_left": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"x": 180,
"y": 90,
"uvlock": true
},
"facing=north,half=top,shape=inner_left": {
"model": "aris_random_additions:block/anaheim_stairs_inner",
"x": 180,
"y": 270,
"uvlock": true
},
"facing=east,half=bottom,shape=outer_right": {
"model": "aris_random_additions:block/anaheim_stairs_outer"
},
"facing=west,half=bottom,shape=outer_right": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"y": 180,
"uvlock": true
},
"facing=south,half=bottom,shape=outer_right": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"y": 90,
"uvlock": true
},
"facing=north,half=bottom,shape=outer_right": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"y": 270,
"uvlock": true
},
"facing=east,half=bottom,shape=outer_left": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"y": 270,
"uvlock": true
},
"facing=west,half=bottom,shape=outer_left": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"y": 90,
"uvlock": true
},
"facing=south,half=bottom,shape=outer_left": {
"model": "aris_random_additions:block/anaheim_stairs_outer"
},
"facing=north,half=bottom,shape=outer_left": {
"model": "aris_random_additions:block/anaheim_stairs_outer",
"y": 180,
"uvlock": true
}
}
}

View File

@@ -0,0 +1,16 @@
{
"variants": {
"axis=x": {
"model": "aris_random_additions:block/anaheim_wood",
"x": 90,
"y": 90
},
"axis=y": {
"model": "aris_random_additions:block/anaheim_wood"
},
"axis=z": {
"model": "aris_random_additions:block/anaheim_wood",
"x": 90
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "aris_random_additions:block/black_iron_block"
}
}
}

View File

@@ -0,0 +1,16 @@
{
"variants": {
"blockstate=0": {
"model": "aris_random_additions:block/nether_power_generator"
},
"blockstate=1": {
"model": "aris_random_additions:block/nether_power_generator_filled_block_states_blockstate_0"
},
"blockstate=2": {
"model": "aris_random_additions:block/nether_power_generator_filled_block_states_blockstate_1"
},
"blockstate=3": {
"model": "aris_random_additions:block/nether_power_generator_filled_block_states_blockstate_2"
}
}
}

View File

@@ -0,0 +1,19 @@
{
"variants": {
"facing=north": {
"model": "aris_random_additions:block/star_assembly_table"
},
"facing=east": {
"model": "aris_random_additions:block/star_assembly_table",
"y": 90
},
"facing=south": {
"model": "aris_random_additions:block/star_assembly_table",
"y": 180
},
"facing=west": {
"model": "aris_random_additions:block/star_assembly_table",
"y": 270
}
}
}

View File

@@ -1,7 +1,8 @@
{
"advancements.condensed_netherrack_advancement.descr": "Condense Netherrack for the first time",
"item.nims_random_bullshit.magic_dust": "Magic Dust",
"block.aris_random_additions.anaheim_slab": "Anaheim Slab",
"block.nims_random_bullshit.penta_condensed_netherrack": "Penta-condensed Netherrack",
"item.nims_random_bullshit.magic_dust": "Magic Dust",
"item.nims_random_bullshit.orichalcum_armor_boots": "Orichalcum Boots",
"block.nims_random_bullshit.magma_brick_button": "Magma Brick Button",
"painting.nims_random_bullshit.shit_painting.title": "Shit Painting",
@@ -11,19 +12,25 @@
"block.aris_random_additions.broken_glass": "Broken Glass",
"item.aris_random_additions.ghoul_spawn_egg": "Ghoul Spawn Egg",
"item.aris_random_additions.endite_armor_boots": "Endite Boots",
"block.aris_random_additions.star_assembly_table": "Star Assembly Table",
"gui.aris_random_additions.turd_gui.label_uh_ohh_stinky": "UH OHH!!! STINKY!!! UH OHH!!! STINKY!!! UH OHH!!! STINKY!!! UH OHH!!! STINKY!!! ",
"block.aris_random_additions.anaheim_button": "Anaheim Button",
"item.aris_random_additions.bedrock_shard": "Bedrock Shard",
"advancements.grave_digger_advancement.title": "We Must Dig!",
"item.aris_random_additions.bedrock_upgrade_template": "Bedrock Upgrade Template",
"item.aris_random_additions.endite_ingot": "Endite",
"block.nims_random_bullshit.orichalcum_block": "Block of Orichalcum",
"block.nims_random_bullshit.rubber_slab": "Rubber Slab",
"gui.aris_random_additions.star_assembly_table_gui.label_star_assembly_table": "Star Assembly Table",
"item.nims_random_bullshit.bedrock_upgrade_template": "Bedrock Upgrade Template",
"block.aris_random_additions.magma_brick_pressure_plate": "Beans and Cheese Pressure Plate",
"advancements.orichalcum_set_advancement.descr": "Wear a full armor set of Orichalcum.",
"block.nims_random_bullshit.orichalcum_ore": "Orichalcum Ore",
"block.aris_random_additions.condensed_condensed_netherrack": "Condensed Condensed Netherrack",
"advancements.black_iron_advancement.title": "\"Black\" Iron Ingot",
"advancements.quadra_condensed_netherrack_advancement.descr": "Craft Quadra-Condensed Netherrack",
"advancements.orange_sweetened_carbonated_water_can_advancement.descr": "Drink an Orange Soda",
"advancements.black_iron_apple_advancement.descr": "Eat a Black Iron Apple",
"item.aris_random_additions.endite_pickaxe": "Endite Pickaxe",
"advancements.endite_scythe_advancement.title": "Endbringer\u0027s Sharpest Tool",
"painting.aris_random_additions.turd_painting.author": "Ari/nim",
@@ -37,23 +44,30 @@
"item.aris_random_additions.wand_of_draining": "Wand Of Draining",
"block.aris_random_additions.endite_block": "Block of Endite",
"enchantment.aris_random_additions.passive_income_enchantment": "Passive Income",
"gui.aris_random_additions.nether_power_generator_gui.label_nether_power_generator": "Nether Power Generator",
"item.aris_random_additions.sand_dust": "Sand Dust",
"block.aris_random_additions.orichalcum_block": "Block of Orichalcum",
"item.aris_random_additions.orange_sweetened_carbonated_water_can": "Canned Orange Soda",
"gui.nims_random_bullshit.mailbox_gui.outbox_y_coord": "0",
"gui.aris_random_additions.nether_power_generator_gui.button_refill": "Refill",
"item.aris_random_additions.power_star": "Power Star",
"advancements.bedrock_eater_advancement.title": "Somehow, Being Made Of Bedrock Makes It More Replinishing. Yeah. I don\u0027t know.",
"advancements.nether_power_generator_advancement.title": "Brought To You By \"The Nether™\"",
"enchantment.nims_random_bullshit.ruining_enchantment": "Ruining",
"advancements.endite_advancement.descr": "Obtain Endite",
"advancements.netherrack_juice_advancement.descr": "Obtain Netherrack Juice",
"block.nims_random_bullshit.condensed_condensed_netherrack": "Condensed Condensed Netherrack",
"block.nims_random_bullshit.quadra_condensed_netherrack": "Quadra-condensed Netherrack",
"advancements.condensed_condensed_netherrack_advancement.descr": "Craft Condensed Condensed Netherrack",
"block.aris_random_additions.orange_wood_wood": "OrangeWood Wood",
"advancements.orichalcum_katana_advancement.descr": "Obtain an Orichalcum Katana",
"gui.nims_random_bullshit.bedrockifier_gui.button_empty": "-\u003e",
"advancements.netherite_apple_advancement.descr": "Eat a Netherite Apple",
"block.nims_random_bullshit.hexa_condensed_netherrack": "Hexa-condensed Netherrack",
"enchantment.nims_random_bullshit.sundering_enchantment": "Sundering",
"block.aris_random_additions.magma_brick_slabs": "Beans and Cheese Slab",
"block.aris_random_additions.black_iron_block": "Black Iron Block",
"block.aris_random_additions.anaheim_planks": "Anaheim Planks",
"item.aris_random_additions.gold_token": "Gold Token",
"advancements.orichalcum_apple_advancement.descr": "Eat an Orichalcum Apple",
"item.nims_random_bullshit.sand_dust": "Sand Dust",
@@ -72,27 +86,32 @@
"item.aris_random_additions.orichalcum_armor_helmet.description_0": "Set Bonus: Speed, Jump Boost",
"item.aris_random_additions.socket": "Socket",
"block.nims_random_bullshit.rubber_pressure_plate": "Rubber Pressure Plate",
"item.aris_random_additions.black_iron_upgrade_smithing_template": "Black Iron Upgrade Template",
"block.aris_random_additions.redstone_brick_walls": "Redstone Brick Wall",
"item.nims_random_bullshit.orichalcum_armor_leggings": "Orichalcum Leggings",
"block.nims_random_bullshit.condensed_netherrack": "Condensed Netherrack",
"block.aris_random_additions.magma_brick_stairs": "Beans and Cheese Stairs",
"item.aris_random_additions.netherite_apple": "Netherite Apple",
"block.nims_random_bullshit.magma_brick_slabs": "Magma Brick Slab",
"block.aris_random_additions.orichalcum_deepslate_ore": "Orichalcum Deepslate Ore",
"item.nims_random_bullshit.pocket_lightning": "Pocket Lightning",
"item.aris_random_additions.water_can": "Canned Water",
"block.aris_random_additions.redstone_brick_stairs": "Redstone Brick Stairs",
"item.aris_random_additions.orichalcum_shovel": "Orichalcum Shovel",
"advancements.black_iron_advancement.descr": "Obtain Black Iron Ingot",
"item.nims_random_bullshit.star_wand": "Star Wand",
"item.nims_random_bullshit.orichalcum_axe": "Orichalcum Axe",
"enchantment.nims_random_bullshit.passive_income_enchantment": "Passive Income",
"block.aris_random_additions.magma_brick_button": "Beans and Cheese Button",
"item.aris_random_additions.can_lid": "Can Lid",
"advancements.turtle_apple_advancement.title": "You\u0027re A Monster!",
"block.aris_random_additions.orange_wood_log": "OrangeWood Log",
"item.aris_random_additions.bean": "Bean",
"block.aris_random_additions.orange_wood_fence_gate": "OrangeWood Fence Gate",
"item.aris_random_additions.mint_leaves": "Mint Leaves",
"block.nims_random_bullshit.broken_glass": "Broken Glass",
"block.nims_random_bullshit.redstone_brick_walls": "Redstone Brick Wall",
"advancements.blaze_apple_advancement.title": "That Burns... Or Does It?",
"item.aris_random_additions.tux_spawn_egg": "Tux Spawn Egg",
"block.aris_random_additions.orange_wood_planks": "OrangeWood Planks",
"advancements.grave_digger_advancement.descr": "Obtain Gravedigger",
@@ -114,10 +133,14 @@
"advancements.void_apple_advancement.descr": "Eat a Void Apple",
"item.nims_random_bullshit.snow_golem_question_mark": "Snow Golem...?",
"item.aris_random_additions.gravedigger.description_0": "Right-Click on soul sand or soul soil to use them, summoning a ghoul that attacks hostile mobs.",
"advancements.bedrock_advancement.descr": "Obtain Bedrock",
"advancements.bedrock_advancement.descr": "Obtain Bedrock via sacrificing valuable time of your life",
"item.aris_random_additions.gravedigger.description_1": "We must dig!",
"gui.aris_random_additions.star_assembly_table_gui.button_assemble": "Assemble",
"item.nims_random_bullshit.orichalcum_shovel": "Orichalcum Shovel",
"advancements.penta_condensed_netherrack_advancement.descr": "Craft Penta-Condensed Netherrack",
"advancements.hexa_condensed_netherrack_advancement.title": "Besides... Something Tells Me I Need To Do This 8 More Times...",
"block.nims_random_bullshit.redstone_brick_stairs": "Redstone Brick Stairs",
"advancements.taste_the_rainbow_advancement.descr": "Drink a Canned Taste The Rainbow",
"block.aris_random_additions.magma_brick_walls": "Beans and Cheese Wall",
"item.nims_random_bullshit.cheese": "Cheese",
"item.aris_random_additions.snow_golem_question_mark": "Snow Golem...?",
@@ -126,7 +149,9 @@
"enchantment.aris_random_additions.sundering_enchantment": "Sundering",
"item.aris_random_additions.endite_shovel": "Endite Shovel",
"item.aris_random_additions.endite_scythe.description_0": "Inflicts \"The End Of Your Misery\" effect on-hit, which detonates after 4 seconds to do 33% missing health magic damage.",
"block.aris_random_additions.nether_power_generator": "Nether Power Generator",
"item.aris_random_additions.netherrackite_pickaxe": "Netherrackite Pickaxe",
"block.aris_random_additions.anaheim_log": "Anaheim Log",
"item.aris_random_additions.netherrack_juice_bucket": "Netherrack Juice Bucket",
"item.nims_random_bullshit.netherrackite_pickaxe.description_0": "Non-condensed netherracks broken by this pickaxe drop themselves an additional time.",
"advancements.sweetened_carbonated_water_can_advancement.descr": "Drink a Canned Soda",
@@ -141,6 +166,8 @@
"advancements.star_wand_advancement.descr": "Use a Star Wand",
"item.aris_random_additions.netherrackite_pickaxe.description_0": "Non-condensed netherracks broken by this pickaxe drop themselves an additional time.",
"advancements.end_portal_frame_advancement.descr": "Craft an End Portal Frame",
"item.aris_random_additions.right_piece_of_nether_star": "Right Piece Of Nether Star",
"advancements.condensed_condensed_condensed_netherrack_advancement.title": "You Ask Yourself, \"What Is The Point Of This?\" Yet, You Continue To Do \"This\".",
"advancements.endite_set_advancement.descr": "Wear a full armor set of Endite.",
"item.aris_random_additions.mint_sweetened_carbonated_water_can": "Canned Mint Soda",
"advancements.welcome_advancement.title": "Arira!",
@@ -148,18 +175,26 @@
"item.aris_random_additions.magic_egg": "Magic Egg",
"entity.nims_random_bullshit.ghoul": "Ghoul",
"enchantment.aris_random_additions.life_mending_enchantment": "Life Mending",
"block.aris_random_additions.anaheim_fence": "Anaheim Fence",
"block.aris_random_additions.redstone_brick_slabs": "Redstone Brick Slab",
"item.aris_random_additions.orichalcum_apple": "Orichalcum Apple",
"item.aris_random_additions.top_piece_of_nether_star": "Top Piece Of Nether Star",
"advancements.star_advancement.descr": "Obtain a Star",
"block.aris_random_additions.anaheim_stairs": "Anaheim Stairs",
"item.aris_random_additions.turtle_apple": "Turtle Apple",
"item.nims_random_bullshit.bedrock_pickaxe": "Bedrock Pickaxe",
"item.aris_random_additions.endite_armor_chestplate.description_0": "Set Bonus: Resistance, Regeneration, Strength",
"block.nims_random_bullshit.magma_brick_stairs": "Magma Brick Stairs",
"item.aris_random_additions.black_iron_apple.description_0": "When consumed: Grants 1 permanent bonus Armor and 0.67 permanent bonus Armor Toughness.",
"gui.aris_random_additions.bedrockifier_gui.button_empty": "-\u003e",
"advancements.bedrock_apple_advancement.descr": "Eat a Bedrock Apple",
"advancements.bedrock_shard_advancement.descr": "Obtain Bedrock Shard",
"advancements.bedrock_shard_advancement.descr": "Obtain Bedrock Shard via mining Bedrock with a non-silk-touch Bedrock Pickaxe",
"block.aris_random_additions.quadra_condensed_netherrack": "Quadra-condensed Netherrack",
"block.aris_random_additions.orange_wood_slab": "OrangeWood Slab",
"gui.aris_random_additions.nether_power_generator_gui.button_drain": "Drain",
"advancements.black_iron_apple_advancement.title": "Who Thought This Was A Good Idea???",
"item.aris_random_additions.orichalcum_katana": "Orichalcum Katana",
"advancements.blaze_apple_advancement.descr": "Eat a Blaze Apple",
"item.aris_random_additions.orichalcum_armor_boots": "Orichalcum Heels",
"item.aris_random_additions.endite_upgrade_smithing_template": "Endite Upgrade Template",
"item.aris_random_additions.bedrock_eater": "Bedrock Eater",
@@ -176,9 +211,11 @@
"effect.aris_random_additions.stinky_effect": "Stinky",
"advancements.endite_hoe_advancement.descr": "Craft an Endite Hoe",
"advancements.void_star_advancement.descr": "Craft a Void Star",
"item.aris_random_additions.left_piece_of_nether_star": "Left Piece Of Nether Star",
"item.aris_random_additions.orichalcum_armor_helmet": "Orichalcum Helmet",
"enchantment.aris_random_additions.ruining_enchantment": "Ruining",
"block.aris_random_additions.ore_miner": "Ore Miner",
"advancements.star_assembly_table_advancement.descr": "Succesfully assemble a Nether Star in the Star Assembly Table",
"block.aris_random_additions.condensed_netherrack": "Condensed Netherrack",
"item.aris_random_additions.orichalcum_katana.description_0": "Right-Click: empower the blade, making your next attack cause bleeding DoT effect to the target for a duration.",
"item.aris_random_additions.empty_can": "Empty Can",
@@ -187,6 +224,7 @@
"item.aris_random_additions.golden_berries": "Golden Berries",
"item.nims_random_bullshit.lapis_lazuli_nugget": "Lapis Lazuli Nugget",
"block.aris_random_additions.orange_wood_leaves": "OrangeWood Leaves",
"item.aris_random_additions.blaze_apple": "Blaze Apple",
"item.aris_random_additions.star": "Star",
"item.nims_random_bullshit.bedrock_sword": "Bedrock Sword",
"item.aris_random_additions.sweetened_carbonated_water_can": "Canned Soda",
@@ -196,9 +234,12 @@
"item.nims_random_bullshit.gravedigger": "Gravedigger",
"item.aris_random_additions.pocket_lightning": "Pocket Lightning",
"advancements.sweetened_carbonated_water_can_advancement.title": "Now That\u0027s The Good Stuff!",
"advancements.nether_power_generator_advancement.descr": "Craft a Nether Power Generator",
"item.aris_random_additions.night_vision_goggles_helmet": "Night Vision Goggles",
"advancements.orichalcum_katana_advancement.title": "As Fierce As The Color",
"item.aris_random_additions.cheese": "Cheese",
"block.aris_random_additions.anaheim_fence_gate": "Anaheim Fence Gate",
"advancements.condensed_condensed_netherrack_advancement.title": "But For What Reason?",
"item.aris_random_additions.orichalcum_sword": "Orichalcum Sword",
"advancements.end_portal_frame_advancement.title": "You Shouldn\u0027t Have This...",
"item.aris_random_additions.wand_of_resizing.description_0": "DISCLAIMER: Does not work with Origins that periodically reset your scale!",
@@ -214,13 +255,17 @@
"block.aris_random_additions.orange_wood_fence": "OrangeWood Fence",
"advancements.magic_egg_advancement.descr": "Obtain a Magic Egg",
"advancements.orange_sweetened_carbonated_water_can_advancement.title": "A Fantastic Beverage!",
"advancements.quadra_condensed_netherrack_advancement.title": "I Mean. Surely This Will Lead To Something?",
"item.aris_random_additions.orichalcum_apple.description_0": "When consumed: Grants 1 permanent bonus attack damage.",
"block.aris_random_additions.mint_plant": "Mint Plant",
"block.aris_random_additions.anaheim_leaves": "Anaheim Leaves",
"advancements.endite_advancement.title": "Purple Butter",
"advancements.taste_the_rainbow_advancement.title": "TASTE THE RAINBOW!!!!!!!!!",
"advancements.bedrock_eater_advancement.descr": "Eat a block with the Bedrock Eater",
"entity.aris_random_additions.ari": "Ari",
"item.nims_random_bullshit.night_vision_goggles_helmet": "Night Vision Goggles",
"advancements.power_star_advancement.descr": "Craft a Power Star",
"advancements.hexa_condensed_netherrack_advancement.descr": "Craft Hexa-Condensed Netherrack",
"block.aris_random_additions.orichalcum_ore": "Orichalcum Ore",
"item.aris_random_additions.orichalcum_axe": "Orichalcum Axe",
"item.aris_random_additions.endite_hoe": "Endite Hoe",
@@ -232,9 +277,13 @@
"item.aris_random_additions.void_apple.description_0": "When consumed: Grants 2 permanent bonus max health.",
"advancements.star_advancement.title": "A Star Meant To Be",
"effect.aris_random_additions.bleed_effect": "Bleeding",
"gui.aris_random_additions.nether_power_generator_gui.label_netherrack_juice_tank_currmax": "Tank: curr/max",
"item.aris_random_additions.taste_the_rainbow_water_can": "Canned Taste The Rainbow",
"painting.nims_random_bullshit.shit_painting.author": "nim",
"gui.nims_random_bullshit.mailbox_gui.outbox_x_coord": "0",
"block.aris_random_additions.anaheim_wood": "Anaheim Wood",
"block.nims_random_bullshit.rubber_fence": "Rubber Fence",
"advancements.star_assembly_table_advancement.title": "Star Shaper",
"advancements.turd_advancement.descr": "Turd",
"advancements.condensed_netherrack_advancement.title": "Rackin\u0027 Em Up!",
"death.attack.bleed_damage_type.player": "%1$s bled to death whilst trying to escape %2$s",
@@ -262,17 +311,20 @@
"item.nims_random_bullshit.orichalcum_pickaxe": "Orichalcum Pickaxe",
"item.aris_random_additions.magic_dust": "Magic Dust",
"block.nims_random_bullshit.magma_brick_pressure_plate": "Magma Brick Pressure Plate",
"advancements.endite_set_advancement.title": "Cover Me In Endermite",
"advancements.bedrock_shard_advancement.title": "Unobtainium",
"advancements.endite_set_advancement.title": "Cover Me In Shulker Shells",
"advancements.bedrock_shard_advancement.title": "A Shard That Weighs As Much As 531,441 Netherracks",
"item.aris_random_additions.endite_armor_boots.description_0": "Set Bonus: Resistance, Regeneration, Strength",
"advancements.soda_machine_advancement.title": "It Doesn\u0027t Even Need To Be Restocked! It Just Dispenses Soda Out Of Thin Air!",
"fluid.nims_random_bullshit.netherrack_juice": "Netherrack Juice",
"item.nims_random_bullshit.wand_of_resizing.description_0": "DISCLAIMER: Does not work with Origins that periodically reset your scale!",
"gui.nims_random_bullshit.mailbox_gui.outbox_z_coord": "0",
"item.aris_random_additions.chorus_eye": "Eye of Chorus",
"block.aris_random_additions.anaheim_pressure_plate": "Anaheim Pressure Plate",
"enchantment.aris_random_additions.sweet_blade_enchantment": "Sweet Blade",
"item.aris_random_additions.turd": "Turd",
"advancements.netherite_apple_advancement.title": "Eating Ancient History",
"item.aris_random_additions.pocket_lightning.description_0": "Spawns lightning wherever it lands.",
"item.aris_random_additions.netherite_apple.description_0": "When consumed: Grants 0.05 permanent bonus Knockback Resistance.",
"item.nims_random_bullshit.netherrackite_pickaxe": "Netherrackite Pickaxe",
"item.aris_random_additions.endite_armor_helmet.description_0": "Set Bonus: Resistance, Regeneration, Strength",
"block.aris_random_additions.orange_wood_stairs": "OrangeWood Stairs",
@@ -285,6 +337,7 @@
"fluid.aris_random_additions.netherrack_juice": "Netherrack Juice",
"block.nims_random_bullshit.rubber_button": "Rubber Button",
"item.aris_random_additions.mint": "mint",
"item.aris_random_additions.blaze_apple.description_0": "When consumed: Grants permanent Fire Resistance.",
"block.aris_random_additions.orange_wood_button": "OrangeWood Button",
"item.nims_random_bullshit.magic_egg": "Magic Egg",
"block.aris_random_additions.redstone_bricks": "Redstone Bricks",
@@ -292,11 +345,13 @@
"item.aris_random_additions.lapis_lazuli_nugget": "Lapis Lazuli Nugget",
"advancements.void_apple_advancement.title": "It Certainly Is DeVOID Of Taste",
"item.aris_random_additions.endite_armor_leggings": "Endite Leggings",
"advancements.bedrock_advancement.title": "Unobtainium Block",
"advancements.bedrock_advancement.title": "The Voices Are Gone. But This Is Just The Beginning.",
"advancements.condensed_condensed_condensed_netherrack_advancement.descr": "Craft Condensed Condensed Condensed Netherrack",
"item.nims_random_bullshit.star": "Star",
"gui.nims_random_bullshit.shit_gui.label_uh_ohh_stinky": "UH OHH!!! STINKY!!! UH OHH!!! STINKY!!! UH OHH!!! STINKY!!! UH OHH!!! STINKY!!! ",
"block.nims_random_bullshit.magma_bricks": "Magma Bricks",
"gui.nims_random_bullshit.bedrockifier_gui.label_bedrockifier": "Bedrockifier",
"advancements.turtle_apple_advancement.descr": "Eat a Turtle Apple",
"item.aris_random_additions.endite_armor_chestplate": "Endite Chestplate",
"item.nims_random_bullshit.shit": "Shit",
"advancements.block_eater_advancement.title": "Eat The Blocks",
@@ -305,6 +360,10 @@
"item.aris_random_additions.wither_question_mark": "Wither...?",
"item.aris_random_additions.endite_armor_leggings.description_0": "Set Bonus: Resistance, Regeneration, Strength",
"advancements.netherrack_juice_advancement.title": "Smells Kinda Funny",
"item.aris_random_additions.turtle_apple.description_0": "When consumed: Grants permanent Water Breathing.",
"block.nims_random_bullshit.redstone_brick_slabs": "Redstone Brick Slab",
"block.aris_random_additions.netherrack_juice": "Netherrack Juice"
"item.aris_random_additions.bottom_piece_of_nether_star": "Bottom Piece Of Nether Star",
"block.aris_random_additions.netherrack_juice": "Netherrack Juice",
"item.aris_random_additions.black_iron_apple": "Black Iron Apple",
"advancements.penta_condensed_netherrack_advancement.title": "Otherwise, There Would Be No Point To Keep Rackin\u0027!"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/button",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"texture": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/button_inventory",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"texture": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/button_pressed",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"texture": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/fence_side",
"textures": {
"texture": "aris_random_additions:block/anaheim_planks",
"particle": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/template_fence_gate",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"texture": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/template_fence_gate_open",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"texture": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/template_fence_gate_wall",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"texture": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/template_fence_gate_wall_open",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"texture": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/fence_inventory",
"textures": {
"texture": "aris_random_additions:block/anaheim_planks",
"particle": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/fence_post",
"textures": {
"texture": "aris_random_additions:block/anaheim_planks",
"particle": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,7 @@
{
"parent": "block/cube_all",
"textures": {
"all": "aris_random_additions:block/anaheim_leaves",
"particle": "aris_random_additions:block/anaheim_leaves"
}
}

View File

@@ -0,0 +1,13 @@
{
"parent": "block/cube",
"textures": {
"down": "aris_random_additions:block/anaheim_log_top",
"up": "aris_random_additions:block/anaheim_log_top",
"north": "aris_random_additions:block/anaheim_log_side",
"east": "aris_random_additions:block/anaheim_log_side",
"south": "aris_random_additions:block/anaheim_log_side",
"west": "aris_random_additions:block/anaheim_log_side",
"particle": "aris_random_additions:block/anaheim_log_top"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/cube_all",
"textures": {
"all": "aris_random_additions:block/anaheim_planks",
"particle": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/pressure_plate_up",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"texture": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/pressure_plate_down",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"texture": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,10 @@
{
"parent": "block/slab",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"bottom": "aris_random_additions:block/anaheim_planks",
"top": "aris_random_additions:block/anaheim_planks",
"side": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,10 @@
{
"parent": "block/cube_bottom_top",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"bottom": "aris_random_additions:block/anaheim_planks",
"top": "aris_random_additions:block/anaheim_planks",
"side": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,10 @@
{
"parent": "block/slab_top",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"bottom": "aris_random_additions:block/anaheim_planks",
"top": "aris_random_additions:block/anaheim_planks",
"side": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,10 @@
{
"parent": "block/stairs",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"bottom": "aris_random_additions:block/anaheim_planks",
"top": "aris_random_additions:block/anaheim_planks",
"side": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,10 @@
{
"parent": "block/inner_stairs",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"bottom": "aris_random_additions:block/anaheim_planks",
"top": "aris_random_additions:block/anaheim_planks",
"side": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,10 @@
{
"parent": "block/outer_stairs",
"textures": {
"particle": "aris_random_additions:block/anaheim_planks",
"bottom": "aris_random_additions:block/anaheim_planks",
"top": "aris_random_additions:block/anaheim_planks",
"side": "aris_random_additions:block/anaheim_planks"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/cube_all",
"textures": {
"all": "aris_random_additions:block/anaheim_log_side",
"particle": "aris_random_additions:block/anaheim_log_side"
},
"render_type": "solid"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "block/cube_all",
"textures": {
"all": "aris_random_additions:block/black_iron_block",
"particle": "aris_random_additions:block/black_iron_block"
},
"render_type": "solid"
}

Some files were not shown because too many files have changed in this diff Show More