mirror of
https://github.com/nimsolated/Nims-Random-BS.git
synced 2026-04-02 02:05:20 -07:00
update: 1.4.1
This commit is contained in:
@@ -1,48 +0,0 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "recipe",
|
||||
"definition": {
|
||||
"recipeType": "Crafting",
|
||||
"recipeRetstackSize": 3,
|
||||
"group": "",
|
||||
"cookingBookCategory": "MISC",
|
||||
"xpReward": 0.0,
|
||||
"cookingTime": 200,
|
||||
"craftingBookCategory": "MISC",
|
||||
"recipeShapeless": true,
|
||||
"recipeSlots": [
|
||||
{
|
||||
"value": "CUSTOM:Shit"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
}
|
||||
],
|
||||
"recipeReturnStack": {
|
||||
"value": "Items.DYE#15"
|
||||
},
|
||||
"name": "bonemeal_recipe",
|
||||
"namespace": "mod"
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "procedure",
|
||||
"definition": {
|
||||
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_trigger\" deletable=\"false\" x=\"91\" y=\"61\"><field name=\"trigger\">entity_ticks</field><next><block type=\"entity_nbt_num_set\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">ShitCounter</field></block></value><value name=\"tagValue\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"entity_nbt_num_get\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">ShitCounter</field></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></value><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_binary_ops\" inline=\"false\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"math_binary_ops\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"math_dual_ops\"><field name=\"OP\">MOD</field><value name=\"A\"><block type=\"entity_nbt_num_get\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">ShitCounter</field></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">6000</field></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value></block></value><value name=\"B\"><block type=\"math_binary_ops\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"math_java_constants\"><field name=\"CONSTANT\">RANDOM</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0.125</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"spawn_gem\"><field name=\"despawn\">TRUE</field><value name=\"block\"><block type=\"mcitem_all\"><field name=\"value\">CUSTOM:Shit</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value><value name=\"pickUpDelay\"><block type=\"math_number\"><field name=\"NUM\">20</field></block></value></block></statement></block></next></block></next></block></xml>"
|
||||
}
|
||||
}
|
||||
@@ -8,41 +8,41 @@
|
||||
"cookingBookCategory": "MISC",
|
||||
"xpReward": 0.0,
|
||||
"cookingTime": 200,
|
||||
"craftingBookCategory": "MISC",
|
||||
"recipeShapeless": true,
|
||||
"craftingBookCategory": "EQUIPMENT",
|
||||
"recipeShapeless": false,
|
||||
"recipeSlots": [
|
||||
{
|
||||
"value": "CUSTOM:BrokenGlass"
|
||||
"value": "Items.BONE"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
"value": "Items.BONE"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
"value": "Items.BONE"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
"value": "Items.BONE"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
"value": "Items.IRON_HELMET"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
"value": "Items.BONE"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
"value": "Items.BONE"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
"value": "Items.BONE"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
"value": "Items.BONE"
|
||||
}
|
||||
],
|
||||
"recipeReturnStack": {
|
||||
"value": "CUSTOM:Shit"
|
||||
"value": "Blocks.SKULL#0"
|
||||
},
|
||||
"name": "shit_recipe_2",
|
||||
"name": "skull_recipe",
|
||||
"namespace": "mod"
|
||||
}
|
||||
}
|
||||
48
elements/WitherSkeletonSkullRecipe.mod.json
Normal file
48
elements/WitherSkeletonSkullRecipe.mod.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "recipe",
|
||||
"definition": {
|
||||
"recipeType": "Crafting",
|
||||
"recipeRetstackSize": 1,
|
||||
"group": "",
|
||||
"cookingBookCategory": "MISC",
|
||||
"xpReward": 0.0,
|
||||
"cookingTime": 200,
|
||||
"craftingBookCategory": "EQUIPMENT",
|
||||
"recipeShapeless": false,
|
||||
"recipeSlots": [
|
||||
{
|
||||
"value": "Items.COAL#0"
|
||||
},
|
||||
{
|
||||
"value": "Items.COAL#0"
|
||||
},
|
||||
{
|
||||
"value": "Items.COAL#0"
|
||||
},
|
||||
{
|
||||
"value": "Items.COAL#0"
|
||||
},
|
||||
{
|
||||
"value": "Blocks.SKULL#0"
|
||||
},
|
||||
{
|
||||
"value": "Items.COAL#0"
|
||||
},
|
||||
{
|
||||
"value": "Items.COAL#0"
|
||||
},
|
||||
{
|
||||
"value": "Items.COAL#0"
|
||||
},
|
||||
{
|
||||
"value": "Items.COAL#0"
|
||||
}
|
||||
],
|
||||
"recipeReturnStack": {
|
||||
"value": "Blocks.SKULL#1"
|
||||
},
|
||||
"name": "wither_skeleton_skull_recipe",
|
||||
"namespace": "mod"
|
||||
}
|
||||
}
|
||||
@@ -795,54 +795,6 @@
|
||||
},
|
||||
"path": "~/Shit"
|
||||
},
|
||||
{
|
||||
"name": "ShitSpawnLogic",
|
||||
"type": "procedure",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "shit_spawn_logic",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/procedures/ShitSpawnLogicProcedure.java"
|
||||
],
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "entity",
|
||||
"type": "entity"
|
||||
},
|
||||
{
|
||||
"name": "x",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "z",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "world",
|
||||
"type": "world"
|
||||
}
|
||||
]
|
||||
},
|
||||
"path": "~/Shit"
|
||||
},
|
||||
{
|
||||
"name": "BonemealRecipe",
|
||||
"type": "recipe",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "bonemeal_recipe",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/data/nims_random_bullshit/recipes/bonemeal_recipe.json"
|
||||
]
|
||||
},
|
||||
"path": "~/Shit"
|
||||
},
|
||||
{
|
||||
"name": "ShitRecipe",
|
||||
"type": "recipe",
|
||||
@@ -856,19 +808,6 @@
|
||||
},
|
||||
"path": "~/Shit"
|
||||
},
|
||||
{
|
||||
"name": "ShitRecipe2",
|
||||
"type": "recipe",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "shit_recipe_2",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/data/nims_random_bullshit/recipes/shit_recipe_2.json"
|
||||
]
|
||||
},
|
||||
"path": "~/Shit"
|
||||
},
|
||||
{
|
||||
"name": "GoldenBerries",
|
||||
"type": "item",
|
||||
@@ -1912,7 +1851,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"path": "~/Mailbox"
|
||||
"path": "~/Tux"
|
||||
},
|
||||
{
|
||||
"name": "TuxPlaybackConditionWalking",
|
||||
@@ -1933,6 +1872,32 @@
|
||||
]
|
||||
},
|
||||
"path": "~/Tux"
|
||||
},
|
||||
{
|
||||
"name": "SkullRecipe",
|
||||
"type": "recipe",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "skull_recipe",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/data/nims_random_bullshit/recipes/skull_recipe.json"
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "WitherSkeletonSkullRecipe",
|
||||
"type": "recipe",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "wither_skeleton_skull_recipe",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/data/nims_random_bullshit/recipes/wither_skeleton_skull_recipe.json"
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
}
|
||||
],
|
||||
"variable_elements": [],
|
||||
@@ -1968,11 +1933,11 @@
|
||||
"tab_element_order": {},
|
||||
"language_map": {
|
||||
"en_us": {
|
||||
"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",
|
||||
@@ -1980,8 +1945,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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"category": "misc",
|
||||
"ingredients": [
|
||||
{
|
||||
"item": "nims_random_bullshit:shit"
|
||||
}
|
||||
],
|
||||
"result": {
|
||||
"item": "minecraft:bone_meal",
|
||||
"count": 3
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user