update: version 1.3.2

This commit is contained in:
nimsolated
2026-03-03 09:54:48 -08:00
parent 49a145af5a
commit ea5d0e4aa6
30 changed files with 59 additions and 198 deletions

View File

@@ -11,7 +11,7 @@ import net.minecraft.core.BlockPos;
public class CondensedCondensedCondensedNetherrackBlock extends Block {
public CondensedCondensedCondensedNetherrackBlock() {
super(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.NETHERRACK).strength(291.6f).requiresCorrectToolForDrops());
super(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.NETHERRACK).strength(21.6f).requiresCorrectToolForDrops());
}
@Override

View File

@@ -11,7 +11,7 @@ import net.minecraft.core.BlockPos;
public class CondensedCondensedNetherrackBlock extends Block {
public CondensedCondensedNetherrackBlock() {
super(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.NETHERRACK).strength(32.4f).requiresCorrectToolForDrops());
super(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.NETHERRACK).strength(12.6f).requiresCorrectToolForDrops());
}
@Override

View File

@@ -11,7 +11,7 @@ import net.minecraft.core.BlockPos;
public class HexaCondensedNetherrackBlock extends Block {
public HexaCondensedNetherrackBlock() {
super(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.NETHERRACK).strength(64000f).requiresCorrectToolForDrops());
super(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.NETHERRACK).strength(48.6f).requiresCorrectToolForDrops());
}
@Override

View File

@@ -11,7 +11,7 @@ import net.minecraft.core.BlockPos;
public class PentaCondensedNetherrackBlock extends Block {
public PentaCondensedNetherrackBlock() {
super(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.NETHERRACK).strength(23619.6f).requiresCorrectToolForDrops());
super(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.NETHERRACK).strength(39.6f).requiresCorrectToolForDrops());
}
@Override

View File

@@ -11,7 +11,7 @@ import net.minecraft.core.BlockPos;
public class QuadraCondensedNetherrackBlock extends Block {
public QuadraCondensedNetherrackBlock() {
super(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.NETHERRACK).strength(2624.4f).requiresCorrectToolForDrops());
super(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.NETHERRACK).strength(30.6f).requiresCorrectToolForDrops());
}
@Override

View File

@@ -1,42 +0,0 @@
package net.mcreator.nimsrandombullshit.enchantment;
import net.minecraft.world.item.enchantment.Enchantments;
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.mcreator.nimsrandombullshit.init.NimsRandomBullshitModItems;
import java.util.List;
public class NetherrackingEnchantmentEnchantment extends Enchantment {
private static final EnchantmentCategory ENCHANTMENT_CATEGORY = EnchantmentCategory.create("nims_random_bullshit_netherracking_enchantment",
item -> Ingredient.of(new ItemStack(NimsRandomBullshitModItems.NETHERRACKITE_PICKAXE.get())).test(new ItemStack(item)));
public NetherrackingEnchantmentEnchantment() {
super(Enchantment.Rarity.RARE, ENCHANTMENT_CATEGORY, new EquipmentSlot[]{EquipmentSlot.MAINHAND});
}
@Override
public int getMinCost(int level) {
return 1 + level * 10;
}
@Override
public int getMaxCost(int level) {
return 6 + level * 10;
}
@Override
public int getMaxLevel() {
return 20;
}
@Override
protected boolean checkCompatibility(Enchantment enchantment) {
return super.checkCompatibility(enchantment) && !List.of(Enchantments.BLOCK_EFFICIENCY).contains(enchantment);
}
}

View File

@@ -11,11 +11,9 @@ import net.minecraftforge.registries.DeferredRegister;
import net.minecraft.world.item.enchantment.Enchantment;
import net.mcreator.nimsrandombullshit.enchantment.PassiveIncomeEnchantmentEnchantment;
import net.mcreator.nimsrandombullshit.enchantment.NetherrackingEnchantmentEnchantment;
import net.mcreator.nimsrandombullshit.NimsRandomBullshitMod;
public class NimsRandomBullshitModEnchantments {
public static final DeferredRegister<Enchantment> REGISTRY = DeferredRegister.create(ForgeRegistries.ENCHANTMENTS, NimsRandomBullshitMod.MODID);
public static final RegistryObject<Enchantment> PASSIVE_INCOME_ENCHANTMENT = REGISTRY.register("passive_income_enchantment", () -> new PassiveIncomeEnchantmentEnchantment());
public static final RegistryObject<Enchantment> NETHERRACKING_ENCHANTMENT = REGISTRY.register("netherracking_enchantment", () -> new NetherrackingEnchantmentEnchantment());
}

View File

@@ -10,12 +10,11 @@ import net.minecraft.world.item.PickaxeItem;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Item;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.Entity;
import net.minecraft.network.chat.Component;
import net.minecraft.core.BlockPos;
import net.mcreator.nimsrandombullshit.procedures.NetherrackitePickaxeBlockDestroyedWithToolProcedure;
import net.mcreator.nimsrandombullshit.procedures.NetherrackingLogicProcedure;
import net.mcreator.nimsrandombullshit.init.NimsRandomBullshitModBlocks;
import java.util.List;
@@ -23,15 +22,15 @@ public class NetherrackitePickaxeItem extends PickaxeItem {
public NetherrackitePickaxeItem() {
super(new Tier() {
public int getUses() {
return 18279;
return 6093;
}
public float getSpeed() {
return 729f;
return 13f;
}
public float getAttackDamageBonus() {
return 2f;
return 4f;
}
public int getLevel() {
@@ -43,7 +42,7 @@ public class NetherrackitePickaxeItem extends PickaxeItem {
}
public Ingredient getRepairIngredient() {
return Ingredient.of();
return Ingredient.of(new ItemStack(NimsRandomBullshitModBlocks.CONDENSED_CONDENSED_CONDENSED_NETHERRACK.get()));
}
}, 1, -3f, new Item.Properties().fireResistant());
}
@@ -60,11 +59,4 @@ public class NetherrackitePickaxeItem extends PickaxeItem {
super.appendHoverText(itemstack, level, list, flag);
list.add(Component.translatable("item.nims_random_bullshit.netherrackite_pickaxe.description_0"));
}
@Override
public void inventoryTick(ItemStack itemstack, Level world, Entity entity, int slot, boolean selected) {
super.inventoryTick(itemstack, world, entity, slot, selected);
if (selected)
NetherrackingLogicProcedure.execute(world, entity, itemstack);
}
}

View File

@@ -1,21 +0,0 @@
package net.mcreator.nimsrandombullshit.procedures;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.item.ItemStack;
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.mcreator.nimsrandombullshit.init.NimsRandomBullshitModEnchantments;
public class NetherrackingLogicProcedure {
public static void execute(LevelAccessor world, Entity entity, ItemStack itemstack) {
if (entity == null)
return;
if (itemstack.getEnchantmentLevel(NimsRandomBullshitModEnchantments.NETHERRACKING_ENCHANTMENT.get()) > 0) {
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
_entity.addEffect(new MobEffectInstance(MobEffects.DIG_SPEED, 2, (int) (itemstack.getEnchantmentLevel(NimsRandomBullshitModEnchantments.NETHERRACKING_ENCHANTMENT.get()) * 4), false, false));
}
}
}

View File

@@ -31,6 +31,5 @@
"item.nims_random_bullshit.gravedigger.description_0": "Right-Click on soul sand or soul soil to use them, summoning a ghoul that attacks hostile mobs.",
"item.nims_random_bullshit.shit": "Shit",
"block.nims_random_bullshit.condensed_netherrack": "Condensed Netherrack",
"enchantment.nims_random_bullshit.netherracking_enchantment": "Netherracking",
"item.nims_random_bullshit.netherrackite": "Netherrackite"
"item.nims_random_bullshit.netherrackite": "Netherrackite Ingot"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 247 B

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 B

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 B

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 B

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 B

After

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 B

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 423 B

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 B

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 274 B