UPDATE: 1.4.2

This commit is contained in:
nimsolated
2026-03-14 02:13:41 -07:00
parent 897df326e5
commit 58d8942ed2
67 changed files with 1618 additions and 13 deletions

View File

@@ -0,0 +1,28 @@
package net.mcreator.nimsrandombullshit.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 RubberButtonBlock extends ButtonBlock {
public RubberButtonBlock() {
super(BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(2f, 3f), 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.nimsrandombullshit.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 RubberFenceBlock extends FenceBlock {
public RubberFenceBlock() {
super(BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(2f, 3f).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.nimsrandombullshit.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 RubberFenceGateBlock extends FenceGateBlock {
public RubberFenceGateBlock() {
super(BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(2f, 3f).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,28 @@
package net.mcreator.nimsrandombullshit.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 RubberPressurePlateBlock extends PressurePlateBlock {
public RubberPressurePlateBlock() {
super(Sensitivity.EVERYTHING, BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(2f, 3f).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.nimsrandombullshit.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 RubberSlabBlock extends SlabBlock {
public RubberSlabBlock() {
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 0;
}
@Override
public int getFlammability(BlockState state, BlockGetter world, BlockPos pos, Direction face) {
return 5;
}
}

View File

@@ -0,0 +1,38 @@
package net.mcreator.nimsrandombullshit.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 RubberStairsBlock extends StairBlock {
public RubberStairsBlock() {
super(() -> Blocks.AIR.defaultBlockState(), BlockBehaviour.Properties.of().ignitedByLava().instrument(NoteBlockInstrument.BASS).sound(SoundType.WOOD).strength(3f, 2f));
}
@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

@@ -31,9 +31,4 @@ public class PassiveIncomeEnchantmentEnchantment extends Enchantment {
public int getMaxLevel() {
return 5;
}
@Override
public boolean isTreasureOnly() {
return true;
}
}

View File

@@ -0,0 +1,38 @@
package net.mcreator.nimsrandombullshit.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.Items;
import net.minecraft.world.item.ItemStack;
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class DragonBreathRecipeBrewingRecipe implements IBrewingRecipe {
@SubscribeEvent
public static void init(FMLCommonSetupEvent event) {
event.enqueueWork(() -> BrewingRecipeRegistry.addRecipe(new DragonBreathRecipeBrewingRecipe()));
}
@Override
public boolean isInput(ItemStack input) {
return Ingredient.of(new ItemStack(Items.GLASS_BOTTLE)).test(input);
}
@Override
public boolean isIngredient(ItemStack ingredient) {
return Ingredient.of(new ItemStack(Items.CHORUS_FRUIT)).test(ingredient);
}
@Override
public ItemStack getOutput(ItemStack input, ItemStack ingredient) {
if (isInput(input) && isIngredient(ingredient)) {
return new ItemStack(Items.DRAGON_BREATH);
}
return ItemStack.EMPTY;
}
}

View File

@@ -0,0 +1,40 @@
package net.mcreator.nimsrandombullshit.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.Items;
import net.minecraft.world.item.ItemStack;
import net.mcreator.nimsrandombullshit.init.NimsRandomBullshitModItems;
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class ExperienceBottleRecipeBrewingRecipe implements IBrewingRecipe {
@SubscribeEvent
public static void init(FMLCommonSetupEvent event) {
event.enqueueWork(() -> BrewingRecipeRegistry.addRecipe(new ExperienceBottleRecipeBrewingRecipe()));
}
@Override
public boolean isInput(ItemStack input) {
return Ingredient.of(new ItemStack(Items.GLASS_BOTTLE)).test(input);
}
@Override
public boolean isIngredient(ItemStack ingredient) {
return Ingredient.of(new ItemStack(NimsRandomBullshitModItems.MAGIC_DUST.get())).test(ingredient);
}
@Override
public ItemStack getOutput(ItemStack input, ItemStack ingredient) {
if (isInput(input) && isIngredient(ingredient)) {
return new ItemStack(Items.EXPERIENCE_BOTTLE);
}
return ItemStack.EMPTY;
}
}