mirror of
https://github.com/nimsolated/Nims-Random-BS.git
synced 2026-04-02 10:20:42 -07:00
update: 1.5.0
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.block;
|
||||
|
||||
import org.checkerframework.checker.units.qual.s;
|
||||
|
||||
import net.minecraft.world.level.material.MapColor;
|
||||
import net.minecraft.world.level.block.state.properties.BlockSetType;
|
||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||
import net.minecraft.world.level.block.SoundType;
|
||||
import net.minecraft.world.level.block.ButtonBlock;
|
||||
|
||||
public class MagmaBrickButtonBlock extends ButtonBlock {
|
||||
public MagmaBrickButtonBlock() {
|
||||
super(BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_ORANGE).sound(SoundType.STONE).strength(0.5f).lightLevel(s -> 3).requiresCorrectToolForDrops(), BlockSetType.STONE, 20, false);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.block;
|
||||
|
||||
import org.checkerframework.checker.units.qual.s;
|
||||
|
||||
import net.minecraft.world.level.material.MapColor;
|
||||
import net.minecraft.world.level.block.state.properties.BlockSetType;
|
||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||
import net.minecraft.world.level.block.SoundType;
|
||||
import net.minecraft.world.level.block.PressurePlateBlock;
|
||||
|
||||
public class MagmaBrickPressurePlateBlock extends PressurePlateBlock {
|
||||
public MagmaBrickPressurePlateBlock() {
|
||||
super(Sensitivity.MOBS, BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_ORANGE).sound(SoundType.STONE).strength(0.5f).lightLevel(s -> 3).requiresCorrectToolForDrops().forceSolidOn(), BlockSetType.IRON);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.block;
|
||||
|
||||
import org.checkerframework.checker.units.qual.s;
|
||||
|
||||
import net.minecraft.world.level.material.MapColor;
|
||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||
import net.minecraft.world.level.block.SoundType;
|
||||
import net.minecraft.world.level.block.SlabBlock;
|
||||
|
||||
public class MagmaBrickSlabsBlock extends SlabBlock {
|
||||
public MagmaBrickSlabsBlock() {
|
||||
super(BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_ORANGE).sound(SoundType.STONE).strength(0.5f).lightLevel(s -> 3).requiresCorrectToolForDrops());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.block;
|
||||
|
||||
import org.checkerframework.checker.units.qual.s;
|
||||
|
||||
import net.minecraft.world.level.material.MapColor;
|
||||
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;
|
||||
|
||||
public class MagmaBrickStairsBlock extends StairBlock {
|
||||
public MagmaBrickStairsBlock() {
|
||||
super(() -> Blocks.AIR.defaultBlockState(), BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_ORANGE).sound(SoundType.STONE).strength(0.5f).lightLevel(s -> 3).requiresCorrectToolForDrops());
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getExplosionResistance() {
|
||||
return 0.5f;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRandomlyTicking(BlockState state) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.block;
|
||||
|
||||
import org.checkerframework.checker.units.qual.s;
|
||||
|
||||
import net.minecraft.world.level.material.MapColor;
|
||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||
import net.minecraft.world.level.block.WallBlock;
|
||||
import net.minecraft.world.level.block.SoundType;
|
||||
|
||||
public class MagmaBrickWallsBlock extends WallBlock {
|
||||
public MagmaBrickWallsBlock() {
|
||||
super(BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_ORANGE).sound(SoundType.STONE).strength(0.5f).lightLevel(s -> 3).requiresCorrectToolForDrops().forceSolidOn());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.block;
|
||||
|
||||
import org.checkerframework.checker.units.qual.s;
|
||||
|
||||
import net.minecraft.world.level.material.MapColor;
|
||||
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 MagmaBricksBlock extends Block {
|
||||
public MagmaBricksBlock() {
|
||||
super(BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_ORANGE).sound(SoundType.STONE).strength(0.5f).lightLevel(s -> 3).requiresCorrectToolForDrops());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
|
||||
return 15;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.block;
|
||||
|
||||
import net.minecraft.world.level.material.MapColor;
|
||||
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 RedstoneBrickSlabsBlock extends SlabBlock {
|
||||
public RedstoneBrickSlabsBlock() {
|
||||
super(BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_RED).sound(SoundType.METAL).strength(5f, 6f).requiresCorrectToolForDrops());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSignalSource(BlockState state) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSignal(BlockState blockstate, BlockGetter blockAccess, BlockPos pos, Direction direction) {
|
||||
return 15;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canConnectRedstone(BlockState state, BlockGetter world, BlockPos pos, Direction side) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.block;
|
||||
|
||||
import net.minecraft.world.level.material.MapColor;
|
||||
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 RedstoneBrickStairsBlock extends StairBlock {
|
||||
public RedstoneBrickStairsBlock() {
|
||||
super(() -> Blocks.AIR.defaultBlockState(), BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_RED).sound(SoundType.METAL).strength(5f, 6f).requiresCorrectToolForDrops());
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getExplosionResistance() {
|
||||
return 6f;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRandomlyTicking(BlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSignalSource(BlockState state) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSignal(BlockState blockstate, BlockGetter blockAccess, BlockPos pos, Direction direction) {
|
||||
return 15;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canConnectRedstone(BlockState state, BlockGetter world, BlockPos pos, Direction side) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.block;
|
||||
|
||||
import net.minecraft.world.level.material.MapColor;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||
import net.minecraft.world.level.block.WallBlock;
|
||||
import net.minecraft.world.level.block.SoundType;
|
||||
import net.minecraft.world.level.BlockGetter;
|
||||
import net.minecraft.core.Direction;
|
||||
import net.minecraft.core.BlockPos;
|
||||
|
||||
public class RedstoneBrickWallsBlock extends WallBlock {
|
||||
public RedstoneBrickWallsBlock() {
|
||||
super(BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_RED).sound(SoundType.METAL).strength(5f, 6f).requiresCorrectToolForDrops().forceSolidOn());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSignalSource(BlockState state) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSignal(BlockState blockstate, BlockGetter blockAccess, BlockPos pos, Direction direction) {
|
||||
return 15;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canConnectRedstone(BlockState state, BlockGetter world, BlockPos pos, Direction side) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.block;
|
||||
|
||||
import net.minecraft.world.level.material.MapColor;
|
||||
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 RedstoneBricksBlock extends Block {
|
||||
public RedstoneBricksBlock() {
|
||||
super(BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_RED).sound(SoundType.METAL).strength(5f, 6f).requiresCorrectToolForDrops());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
|
||||
return 15;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSignalSource(BlockState state) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSignal(BlockState blockstate, BlockGetter blockAccess, BlockPos pos, Direction direction) {
|
||||
return 15;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canConnectRedstone(BlockState state, BlockGetter world, BlockPos pos, Direction side) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -3,15 +3,10 @@ package net.mcreator.nimsrandombullshit.enchantment;
|
||||
|
||||
import net.minecraft.world.item.enchantment.EnchantmentCategory;
|
||||
import net.minecraft.world.item.enchantment.Enchantment;
|
||||
import net.minecraft.world.item.crafting.Ingredient;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.entity.EquipmentSlot;
|
||||
import net.minecraft.tags.ItemTags;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
|
||||
public class PassiveIncomeEnchantmentEnchantment extends Enchantment {
|
||||
private static final EnchantmentCategory ENCHANTMENT_CATEGORY = EnchantmentCategory.create("nims_random_bullshit_passive_income_enchantment",
|
||||
item -> Ingredient.of(ItemTags.create(new ResourceLocation("enchantable/equippable"))).test(new ItemStack(item)));
|
||||
private static final EnchantmentCategory ENCHANTMENT_CATEGORY = EnchantmentCategory.ARMOR;
|
||||
|
||||
public PassiveIncomeEnchantmentEnchantment() {
|
||||
super(Enchantment.Rarity.VERY_RARE, ENCHANTMENT_CATEGORY, new EquipmentSlot[]{EquipmentSlot.HEAD, EquipmentSlot.CHEST, EquipmentSlot.LEGS, EquipmentSlot.FEET});
|
||||
|
||||
@@ -10,11 +10,21 @@ import net.minecraftforge.registries.DeferredRegister;
|
||||
|
||||
import net.minecraft.world.level.block.Block;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.block.RedstoneBricksBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.RedstoneBrickWallsBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.RedstoneBrickStairsBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.RedstoneBrickSlabsBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.QuadraCondensedNetherrackBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.PentaCondensedNetherrackBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.OreMinerBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.NetherrackJuiceBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.MailboxBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.MagmaBricksBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.MagmaBrickWallsBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.MagmaBrickStairsBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.MagmaBrickSlabsBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.MagmaBrickPressurePlateBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.MagmaBrickButtonBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.LabelCopyMachineBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.HexaCondensedNetherrackBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.CondensedNetherrackBlock;
|
||||
@@ -36,6 +46,16 @@ public class NimsRandomBullshitModBlocks {
|
||||
public static final RegistryObject<Block> NETHERRACK_JUICE = REGISTRY.register("netherrack_juice", () -> new NetherrackJuiceBlock());
|
||||
public static final RegistryObject<Block> MAILBOX = REGISTRY.register("mailbox", () -> new MailboxBlock());
|
||||
public static final RegistryObject<Block> LABEL_COPY_MACHINE = REGISTRY.register("label_copy_machine", () -> new LabelCopyMachineBlock());
|
||||
public static final RegistryObject<Block> REDSTONE_BRICKS = REGISTRY.register("redstone_bricks", () -> new RedstoneBricksBlock());
|
||||
public static final RegistryObject<Block> REDSTONE_BRICK_STAIRS = REGISTRY.register("redstone_brick_stairs", () -> new RedstoneBrickStairsBlock());
|
||||
public static final RegistryObject<Block> REDSTONE_BRICK_SLABS = REGISTRY.register("redstone_brick_slabs", () -> new RedstoneBrickSlabsBlock());
|
||||
public static final RegistryObject<Block> REDSTONE_BRICK_WALLS = REGISTRY.register("redstone_brick_walls", () -> new RedstoneBrickWallsBlock());
|
||||
public static final RegistryObject<Block> MAGMA_BRICKS = REGISTRY.register("magma_bricks", () -> new MagmaBricksBlock());
|
||||
public static final RegistryObject<Block> MAGMA_BRICK_STAIRS = REGISTRY.register("magma_brick_stairs", () -> new MagmaBrickStairsBlock());
|
||||
public static final RegistryObject<Block> MAGMA_BRICK_SLABS = REGISTRY.register("magma_brick_slabs", () -> new MagmaBrickSlabsBlock());
|
||||
public static final RegistryObject<Block> MAGMA_BRICK_WALLS = REGISTRY.register("magma_brick_walls", () -> new MagmaBrickWallsBlock());
|
||||
public static final RegistryObject<Block> MAGMA_BRICK_PRESSURE_PLATE = REGISTRY.register("magma_brick_pressure_plate", () -> new MagmaBrickPressurePlateBlock());
|
||||
public static final RegistryObject<Block> MAGMA_BRICK_BUTTON = REGISTRY.register("magma_brick_button", () -> new MagmaBrickButtonBlock());
|
||||
// Start of user code block custom blocks
|
||||
// End of user code block custom blocks
|
||||
}
|
||||
|
||||
@@ -26,7 +26,9 @@ import net.mcreator.nimsrandombullshit.item.MagicDustItem;
|
||||
import net.mcreator.nimsrandombullshit.item.LapisLazuliNuggetItem;
|
||||
import net.mcreator.nimsrandombullshit.item.GravediggerItem;
|
||||
import net.mcreator.nimsrandombullshit.item.GoldenBerriesItem;
|
||||
import net.mcreator.nimsrandombullshit.item.CheeseItem;
|
||||
import net.mcreator.nimsrandombullshit.item.BlockEaterItem;
|
||||
import net.mcreator.nimsrandombullshit.item.BeanItem;
|
||||
import net.mcreator.nimsrandombullshit.NimsRandomBullshitMod;
|
||||
|
||||
public class NimsRandomBullshitModItems {
|
||||
@@ -57,6 +59,18 @@ public class NimsRandomBullshitModItems {
|
||||
public static final RegistryObject<Item> SHIPPING_LABEL = REGISTRY.register("shipping_label", () -> new ShippingLabelItem());
|
||||
public static final RegistryObject<Item> TUX_SPAWN_EGG = REGISTRY.register("tux_spawn_egg", () -> new ForgeSpawnEggItem(NimsRandomBullshitModEntities.TUX, -16777216, -1, new Item.Properties()));
|
||||
public static final RegistryObject<Item> LABEL_COPY_MACHINE = block(NimsRandomBullshitModBlocks.LABEL_COPY_MACHINE);
|
||||
public static final RegistryObject<Item> REDSTONE_BRICKS = block(NimsRandomBullshitModBlocks.REDSTONE_BRICKS);
|
||||
public static final RegistryObject<Item> REDSTONE_BRICK_STAIRS = block(NimsRandomBullshitModBlocks.REDSTONE_BRICK_STAIRS);
|
||||
public static final RegistryObject<Item> REDSTONE_BRICK_SLABS = block(NimsRandomBullshitModBlocks.REDSTONE_BRICK_SLABS);
|
||||
public static final RegistryObject<Item> REDSTONE_BRICK_WALLS = block(NimsRandomBullshitModBlocks.REDSTONE_BRICK_WALLS);
|
||||
public static final RegistryObject<Item> MAGMA_BRICKS = block(NimsRandomBullshitModBlocks.MAGMA_BRICKS);
|
||||
public static final RegistryObject<Item> MAGMA_BRICK_STAIRS = block(NimsRandomBullshitModBlocks.MAGMA_BRICK_STAIRS);
|
||||
public static final RegistryObject<Item> MAGMA_BRICK_SLABS = block(NimsRandomBullshitModBlocks.MAGMA_BRICK_SLABS);
|
||||
public static final RegistryObject<Item> MAGMA_BRICK_WALLS = block(NimsRandomBullshitModBlocks.MAGMA_BRICK_WALLS);
|
||||
public static final RegistryObject<Item> MAGMA_BRICK_PRESSURE_PLATE = block(NimsRandomBullshitModBlocks.MAGMA_BRICK_PRESSURE_PLATE);
|
||||
public static final RegistryObject<Item> MAGMA_BRICK_BUTTON = block(NimsRandomBullshitModBlocks.MAGMA_BRICK_BUTTON);
|
||||
public static final RegistryObject<Item> BEAN = REGISTRY.register("bean", () -> new BeanItem());
|
||||
public static final RegistryObject<Item> CHEESE = REGISTRY.register("cheese", () -> new CheeseItem());
|
||||
|
||||
// Start of user code block custom items
|
||||
// End of user code block custom items
|
||||
|
||||
@@ -29,6 +29,10 @@ public class NimsRandomBullshitModTabs {
|
||||
tabData.accept(NimsRandomBullshitModBlocks.QUADRA_CONDENSED_NETHERRACK.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.PENTA_CONDENSED_NETHERRACK.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.HEXA_CONDENSED_NETHERRACK.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.MAGMA_BRICKS.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.MAGMA_BRICK_STAIRS.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.MAGMA_BRICK_SLABS.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.MAGMA_BRICK_WALLS.get().asItem());
|
||||
} else if (tabData.getTabKey() == CreativeModeTabs.TOOLS_AND_UTILITIES) {
|
||||
tabData.accept(NimsRandomBullshitModItems.BLOCK_EATER.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.NETHERRACKITE_PICKAXE.get());
|
||||
@@ -46,6 +50,8 @@ public class NimsRandomBullshitModTabs {
|
||||
} else if (tabData.getTabKey() == CreativeModeTabs.FOOD_AND_DRINKS) {
|
||||
tabData.accept(NimsRandomBullshitModItems.MAGIC_FLESH.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.GOLDEN_BERRIES.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.BEAN.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.CHEESE.get());
|
||||
} else if (tabData.getTabKey() == CreativeModeTabs.FUNCTIONAL_BLOCKS) {
|
||||
tabData.accept(NimsRandomBullshitModBlocks.ORE_MINER.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.MAILBOX.get().asItem());
|
||||
@@ -53,6 +59,13 @@ public class NimsRandomBullshitModTabs {
|
||||
} else if (tabData.getTabKey() == CreativeModeTabs.SPAWN_EGGS) {
|
||||
tabData.accept(NimsRandomBullshitModItems.GHOUL_SPAWN_EGG.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.TUX_SPAWN_EGG.get());
|
||||
} else if (tabData.getTabKey() == CreativeModeTabs.REDSTONE_BLOCKS) {
|
||||
tabData.accept(NimsRandomBullshitModBlocks.REDSTONE_BRICKS.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.REDSTONE_BRICK_STAIRS.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.REDSTONE_BRICK_SLABS.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.REDSTONE_BRICK_WALLS.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.MAGMA_BRICK_PRESSURE_PLATE.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.MAGMA_BRICK_BUTTON.get().asItem());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.item;
|
||||
|
||||
import net.minecraft.world.item.Rarity;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.food.FoodProperties;
|
||||
|
||||
public class BeanItem extends Item {
|
||||
public BeanItem() {
|
||||
super(new Item.Properties().stacksTo(64).fireResistant().rarity(Rarity.COMMON).food((new FoodProperties.Builder()).nutrition(1).saturationMod(0.3f).build()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.item;
|
||||
|
||||
import net.minecraft.world.item.Rarity;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.food.FoodProperties;
|
||||
|
||||
public class CheeseItem extends Item {
|
||||
public CheeseItem() {
|
||||
super(new Item.Properties().stacksTo(64).fireResistant().rarity(Rarity.COMMON).food((new FoodProperties.Builder()).nutrition(1).saturationMod(0.3f).build()));
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,7 @@ import net.minecraft.world.food.FoodProperties;
|
||||
|
||||
public class GoldenBerriesItem extends Item {
|
||||
public GoldenBerriesItem() {
|
||||
super(new Item.Properties().stacksTo(64).rarity(Rarity.UNCOMMON).food((new FoodProperties.Builder()).nutrition(4).saturationMod(12f).build()));
|
||||
super(new Item.Properties().stacksTo(64).rarity(Rarity.UNCOMMON).food((new FoodProperties.Builder()).nutrition(4).saturationMod(1.67f).build()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -33,7 +33,7 @@ public class PassiveIncomeProcedureProcedure {
|
||||
if (entity == null)
|
||||
return;
|
||||
entity.getPersistentData().putDouble("PassiveIncomeCounter", (entity.getPersistentData().getDouble("PassiveIncomeCounter") + 1));
|
||||
if (entity.getPersistentData().getDouble("PassiveIncomeCounter") % 80 == 0) {
|
||||
if (entity.getPersistentData().getDouble("PassiveIncomeCounter") % 3340 == 0) {
|
||||
if ((entity instanceof LivingEntity _entGetArmor ? _entGetArmor.getItemBySlot(EquipmentSlot.FEET) : ItemStack.EMPTY).getEnchantmentLevel(NimsRandomBullshitModEnchantments.PASSIVE_INCOME_ENCHANTMENT.get()) > 0) {
|
||||
if (entity instanceof Player _player)
|
||||
_player.giveExperiencePoints(
|
||||
|
||||
Reference in New Issue
Block a user