update: 1.4.1

This commit is contained in:
nimsolated
2026-03-13 21:37:27 -07:00
parent ec6005769b
commit fb1077fc8c
11 changed files with 136 additions and 203 deletions

View File

@@ -1,41 +0,0 @@
package net.mcreator.nimsrandombullshit.procedures;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.eventbus.api.Event;
import net.minecraftforge.event.entity.living.LivingEvent;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.entity.item.ItemEntity;
import net.minecraft.world.entity.Entity;
import net.minecraft.server.level.ServerLevel;
import net.mcreator.nimsrandombullshit.init.NimsRandomBullshitModItems;
import javax.annotation.Nullable;
@Mod.EventBusSubscriber
public class ShitSpawnLogicProcedure {
@SubscribeEvent
public static void onEntityTick(LivingEvent.LivingTickEvent event) {
execute(event, event.getEntity().level(), event.getEntity().getX(), event.getEntity().getY(), event.getEntity().getZ(), event.getEntity());
}
public static void execute(LevelAccessor world, double x, double y, double z, Entity entity) {
execute(null, world, x, y, z, entity);
}
private static void execute(@Nullable Event event, LevelAccessor world, double x, double y, double z, Entity entity) {
if (entity == null)
return;
entity.getPersistentData().putDouble("ShitCounter", (entity.getPersistentData().getDouble("ShitCounter") + 1));
if (entity.getPersistentData().getDouble("ShitCounter") % 6000 == 0 && Math.random() < 0.125) {
if (world instanceof ServerLevel _level) {
ItemEntity entityToSpawn = new ItemEntity(_level, x, y, z, new ItemStack(NimsRandomBullshitModItems.SHIT.get()));
entityToSpawn.setPickUpDelay(20);
_level.addFreshEntity(entityToSpawn);
}
}
}
}

View File

@@ -1,9 +1,9 @@
{
"gui.nims_random_bullshit.mailbox_name_entry_gui.button_done": "Done",
"item.nims_random_bullshit.star_wand": "Star Wand",
"gui.nims_random_bullshit.mailbox_name_entry_gui.button_done": "Done",
"gui.nims_random_bullshit.ore_miner_gui.button_mine": "Mine",
"block.nims_random_bullshit.penta_condensed_netherrack": "Penta-condensed Netherrack",
"item.nims_random_bullshit.magic_dust": "Magic Dust",
"block.nims_random_bullshit.penta_condensed_netherrack": "Penta-condensed Netherrack",
"enchantment.nims_random_bullshit.passive_income_enchantment": "Passive Income",
"gui.nims_random_bullshit.label_copy_machine_gui.button_copy": "Copy",
"gui.nims_random_bullshit.mailbox_gui.outbox_x_coord": "0",
@@ -11,8 +11,8 @@
"block.nims_random_bullshit.label_copy_machine": "Label Copy Machine",
"effect.nims_random_bullshit.summoned_entity_effect": "Summoned Entity",
"gui.nims_random_bullshit.mailbox_name_entry_gui.mailbox_name_field": "",
"item.nims_random_bullshit.ghoul_spawn_egg": "Ghoul Spawn Egg",
"item.nims_random_bullshit.shipping_label": "Shipping Label",
"item.nims_random_bullshit.ghoul_spawn_egg": "Ghoul Spawn Egg",
"gui.nims_random_bullshit.mailbox_gui.label_y": "Y:",
"gui.nims_random_bullshit.mailbox_gui.label_z": "Z:",
"item.nims_random_bullshit.tux_spawn_egg": "Tux Spawn Egg",

View File

@@ -1,13 +0,0 @@
{
"type": "minecraft:crafting_shapeless",
"category": "misc",
"ingredients": [
{
"item": "nims_random_bullshit:shit"
}
],
"result": {
"item": "minecraft:bone_meal",
"count": 3
}
}

View File

@@ -1,13 +0,0 @@
{
"type": "minecraft:crafting_shapeless",
"category": "misc",
"ingredients": [
{
"item": "nims_random_bullshit:broken_glass"
}
],
"result": {
"item": "nims_random_bullshit:shit",
"count": 1
}
}

View File

@@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "equipment",
"pattern": [
"aaa",
"aba",
"aaa"
],
"key": {
"a": {
"item": "minecraft:bone"
},
"b": {
"item": "minecraft:iron_helmet"
}
},
"result": {
"item": "minecraft:skeleton_skull",
"count": 1
}
}

View File

@@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "equipment",
"pattern": [
"aaa",
"aba",
"aaa"
],
"key": {
"a": {
"item": "minecraft:coal"
},
"b": {
"item": "minecraft:skeleton_skull"
}
},
"result": {
"item": "minecraft:wither_skeleton_skull",
"count": 1
}
}