update: 1.7.1 + new dependencies
66
elements/BedrockEater.mod.json
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
{
|
||||||
|
"_fv": 73,
|
||||||
|
"_type": "item",
|
||||||
|
"definition": {
|
||||||
|
"renderType": 0,
|
||||||
|
"texture": "bedrock_eater",
|
||||||
|
"customModelName": "Normal",
|
||||||
|
"customProperties": {},
|
||||||
|
"states": [],
|
||||||
|
"name": "Bedrock Eater",
|
||||||
|
"rarity": "EPIC",
|
||||||
|
"creativeTabs": [
|
||||||
|
{
|
||||||
|
"value": "TOOLS"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"stackSize": 1,
|
||||||
|
"enchantability": 0,
|
||||||
|
"useDuration": 0,
|
||||||
|
"toolType": 1.0,
|
||||||
|
"damageCount": 0,
|
||||||
|
"recipeRemainder": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"destroyAnyBlock": false,
|
||||||
|
"immuneToFire": true,
|
||||||
|
"stayInGridWhenCrafting": false,
|
||||||
|
"damageOnCrafting": false,
|
||||||
|
"enableMeleeDamage": false,
|
||||||
|
"damageVsEntity": 0.0,
|
||||||
|
"specialInformation": {
|
||||||
|
"fixedValue": []
|
||||||
|
},
|
||||||
|
"glowCondition": {
|
||||||
|
"fixedValue": false
|
||||||
|
},
|
||||||
|
"inventorySize": 9,
|
||||||
|
"inventoryStackSize": 64,
|
||||||
|
"onRightClickedOnBlock": {
|
||||||
|
"name": "BedrockEaterRightClick"
|
||||||
|
},
|
||||||
|
"enableRanged": false,
|
||||||
|
"shootConstantly": false,
|
||||||
|
"rangedItemChargesPower": false,
|
||||||
|
"projectile": {
|
||||||
|
"value": "Arrow"
|
||||||
|
},
|
||||||
|
"projectileDisableAmmoCheck": false,
|
||||||
|
"isFood": false,
|
||||||
|
"nutritionalValue": 4,
|
||||||
|
"saturation": 0.3,
|
||||||
|
"eatResultItem": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"isMeat": false,
|
||||||
|
"isAlwaysEdible": false,
|
||||||
|
"animation": "block",
|
||||||
|
"isMusicDisc": false,
|
||||||
|
"musicDiscMusic": {
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
"musicDiscDescription": "",
|
||||||
|
"musicDiscLengthInTicks": 0,
|
||||||
|
"musicDiscAnalogOutput": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
48
elements/BedrockEaterRecipe.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": "CUSTOM:BlockEater"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": "Blocks.BEDROCK"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": "Blocks.BEDROCK"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": "Blocks.BEDROCK"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"recipeReturnStack": {
|
||||||
|
"value": "CUSTOM:BedrockEater"
|
||||||
|
},
|
||||||
|
"name": "bedrock_eater_recipe",
|
||||||
|
"namespace": "mod"
|
||||||
|
}
|
||||||
|
}
|
||||||
7
elements/BedrockEaterRightClick.mod.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"_fv": 73,
|
||||||
|
"_type": "procedure",
|
||||||
|
"definition": {
|
||||||
|
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_trigger\" deletable=\"false\" x=\"376\" y=\"322\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_binary_ops\" inline=\"false\"><field name=\"OP\">OR</field><value name=\"A\"><block type=\"compare_mcblocks\"><value name=\"a\"><block type=\"world_data_blockat\"><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></block></value><value name=\"b\"><block type=\"mcitem_allblocks\"><field name=\"value\">Blocks.BEDROCK</field></block></value></block></value><value name=\"B\"><block type=\"math_binary_ops\"><field name=\"OP\">NEQ</field><value name=\"A\"><block type=\"blockat_hardness\"><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></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">-1</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"block_remove\"><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><next><block type=\"entity_set_foodlevel\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"foodlevel\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"entity_foodlevel\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">6</field></block></value></block></value><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"math_binary_ops\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"entity_foodlevel\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">20</field></block></value></block></value><statement name=\"DO0\"><block type=\"entity_set_saturation\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"amount\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"entity_get_saturation\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">3</field></block></value></block></value></block></statement><next><block type=\"play_sound\"><field name=\"sound\">entity.generic.eat</field><field name=\"soundcategory\">player</field><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=\"level\"><block type=\"math_number\"><field name=\"NUM\">0.5</field></block></value><value name=\"pitch\"><block type=\"math_number\"><field name=\"NUM\">0.84</field></block></value><next><block type=\"spawn_particle_multi\"><field name=\"particle\">END_ROD</field><value name=\"count\"><block type=\"math_number\"><field name=\"NUM\">4</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=\"dx\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"dy\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"dz\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"speed\"><block type=\"math_number\"><field name=\"NUM\">0.4</field></block></value><next><block type=\"item_cooldown_for\"><value name=\"item\"><block type=\"itemstack_to_mcitem\"></block></value><value name=\"ticks\"><block type=\"math_number\"><field name=\"NUM\">300</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"entity_has_achievement\"><field name=\"achievement\">CUSTOM:BlockEaterAdvancement</field><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"entity_add_achievement\"><field name=\"achievement\">CUSTOM:BlockEaterAdvancement</field><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></xml>"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
],
|
],
|
||||||
"efficiency": 9.0,
|
"efficiency": 9.0,
|
||||||
"attackSpeed": 1.2,
|
"attackSpeed": 1.2,
|
||||||
"enchantability": 19,
|
"enchantability": 22,
|
||||||
"damageVsEntity": 8.0,
|
"damageVsEntity": 8.0,
|
||||||
"usageCount": 0,
|
"usageCount": 0,
|
||||||
"glowCondition": {
|
"glowCondition": {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
],
|
],
|
||||||
"efficiency": 4.0,
|
"efficiency": 4.0,
|
||||||
"attackSpeed": 1.6,
|
"attackSpeed": 1.6,
|
||||||
"enchantability": 19,
|
"enchantability": 22,
|
||||||
"damageVsEntity": 80.0,
|
"damageVsEntity": 80.0,
|
||||||
"usageCount": 0,
|
"usageCount": 0,
|
||||||
"glowCondition": {
|
"glowCondition": {
|
||||||
|
|||||||
@@ -124,6 +124,9 @@
|
|||||||
"isFluidTank": false,
|
"isFluidTank": false,
|
||||||
"fluidCapacity": 8000,
|
"fluidCapacity": 8000,
|
||||||
"fluidRestrictions": [],
|
"fluidRestrictions": [],
|
||||||
|
"onRedstoneOn": {
|
||||||
|
"name": "BedrockifierLogic"
|
||||||
|
},
|
||||||
"generateFeature": false,
|
"generateFeature": false,
|
||||||
"restrictionBiomes": [],
|
"restrictionBiomes": [],
|
||||||
"blocksToReplace": [
|
"blocksToReplace": [
|
||||||
|
|||||||
@@ -62,22 +62,6 @@
|
|||||||
"locked": false
|
"locked": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "button",
|
|
||||||
"data": {
|
|
||||||
"name": "button_empty",
|
|
||||||
"text": "->",
|
|
||||||
"isUndecorated": false,
|
|
||||||
"onClick": {
|
|
||||||
"name": "BedrockifierButtonPressLogic"
|
|
||||||
},
|
|
||||||
"width": 35,
|
|
||||||
"height": 20,
|
|
||||||
"x": 222,
|
|
||||||
"y": 71,
|
|
||||||
"locked": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "outputslot",
|
"type": "outputslot",
|
||||||
"data": {
|
"data": {
|
||||||
@@ -110,6 +94,16 @@
|
|||||||
"y": 44,
|
"y": 44,
|
||||||
"locked": false
|
"locked": false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "image",
|
||||||
|
"data": {
|
||||||
|
"image": "right_arrow_sign.png",
|
||||||
|
"use1Xscale": false,
|
||||||
|
"x": 222,
|
||||||
|
"y": 71,
|
||||||
|
"locked": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"gridSettings": {
|
"gridSettings": {
|
||||||
|
|||||||
7
elements/BedrockifierLogic.mod.json
Normal file
@@ -8,7 +8,7 @@
|
|||||||
"customProperties": {},
|
"customProperties": {},
|
||||||
"states": [],
|
"states": [],
|
||||||
"name": "Block Eater",
|
"name": "Block Eater",
|
||||||
"rarity": "EPIC",
|
"rarity": "RARE",
|
||||||
"creativeTabs": [
|
"creativeTabs": [
|
||||||
{
|
{
|
||||||
"value": "TOOLS"
|
"value": "TOOLS"
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
"destroyAnyBlock": false,
|
"destroyAnyBlock": false,
|
||||||
"immuneToFire": false,
|
"immuneToFire": true,
|
||||||
"stayInGridWhenCrafting": false,
|
"stayInGridWhenCrafting": false,
|
||||||
"damageOnCrafting": false,
|
"damageOnCrafting": false,
|
||||||
"enableMeleeDamage": false,
|
"enableMeleeDamage": false,
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
"material": {
|
"material": {
|
||||||
"value": "NONE"
|
"value": "NONE"
|
||||||
},
|
},
|
||||||
"tickRate": 0,
|
"tickRate": 200,
|
||||||
"tickRandomly": false,
|
"tickRandomly": false,
|
||||||
"isReplaceable": false,
|
"isReplaceable": false,
|
||||||
"canProvidePower": false,
|
"canProvidePower": false,
|
||||||
@@ -131,6 +131,9 @@
|
|||||||
"isFluidTank": false,
|
"isFluidTank": false,
|
||||||
"fluidCapacity": 8000,
|
"fluidCapacity": 8000,
|
||||||
"fluidRestrictions": [],
|
"fluidRestrictions": [],
|
||||||
|
"onTickUpdate": {
|
||||||
|
"name": "OreMinerTickUpdate"
|
||||||
|
},
|
||||||
"generateFeature": false,
|
"generateFeature": false,
|
||||||
"restrictionBiomes": [],
|
"restrictionBiomes": [],
|
||||||
"blocksToReplace": [
|
"blocksToReplace": [
|
||||||
|
|||||||
@@ -29,22 +29,6 @@
|
|||||||
"locked": false
|
"locked": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "button",
|
|
||||||
"data": {
|
|
||||||
"name": "button_mine",
|
|
||||||
"text": "Mine",
|
|
||||||
"isUndecorated": false,
|
|
||||||
"onClick": {
|
|
||||||
"name": "OreMinerMineButtonPressed"
|
|
||||||
},
|
|
||||||
"width": 46,
|
|
||||||
"height": 20,
|
|
||||||
"x": 141,
|
|
||||||
"y": 80,
|
|
||||||
"locked": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "image",
|
"type": "image",
|
||||||
"data": {
|
"data": {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"value": "Items.NETHERITE_SCRAP"
|
"value": "Items.NETHERITE_SCRAP"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": "CUSTOM:QuadraCondensedNetherrack"
|
"value": "Blocks.BEDROCK"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": "Items.GOLD_INGOT"
|
"value": "Items.GOLD_INGOT"
|
||||||
|
|||||||
7
elements/OreMinerTickUpdate.mod.json
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url = 'https://cursemaven.com/'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
minecraft {
|
||||||
|
runs {
|
||||||
|
client {
|
||||||
|
property 'mixin.env.remapRefMap', 'true'
|
||||||
|
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
property 'mixin.env.remapRefMap', 'true'
|
||||||
|
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
|
||||||
|
}
|
||||||
|
data {
|
||||||
|
property 'mixin.env.remapRefMap', 'true'
|
||||||
|
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
implementation fg.deobf("curse.maven:photon-871522:7381162")
|
||||||
|
implementation fg.deobf("curse.maven:ldlib-626676:7412415")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url = "https://jitpack.io"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation fg.deobf("com.github.Virtuoel:Pehkui:3.8.2-1.20.1-forge")
|
||||||
|
}
|
||||||
|
|
||||||
|
minecraft {
|
||||||
|
runs {
|
||||||
|
client {
|
||||||
|
property 'mixin.env.remapRefMap', 'true'
|
||||||
|
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
property 'mixin.env.remapRefMap', 'true'
|
||||||
|
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
|
||||||
|
}
|
||||||
|
data {
|
||||||
|
property 'mixin.env.remapRefMap', 'true'
|
||||||
|
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,129 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.9.0",
|
|
||||||
"credit": "Made with Blockbench",
|
|
||||||
"textures": {
|
|
||||||
"0": "nims_random_bullshit:block/mailbox_base",
|
|
||||||
"1": "nims_random_bullshit:block/label_copy_machine_buttons",
|
|
||||||
"2": "nims_random_bullshit:block/label_copy_machine_line",
|
|
||||||
"particle": "nims_random_bullshit:block/mailbox_base"
|
|
||||||
},
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"from": [1, 0, 1],
|
|
||||||
"to": [15, 2, 15],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [7, 0, 7]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [2, 0, 16, 2], "texture": "#0"},
|
|
||||||
"east": {"uv": [0, 0, 14, 2], "texture": "#0"},
|
|
||||||
"south": {"uv": [0, 0, 14, 2], "texture": "#0"},
|
|
||||||
"west": {"uv": [1, 0, 15, 2], "texture": "#0"},
|
|
||||||
"up": {"uv": [0, 1, 14, 15], "texture": "#0"},
|
|
||||||
"down": {"uv": [0, 0, 14, 14], "texture": "#0"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [1, 3, 1],
|
|
||||||
"to": [15, 5, 15],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [7, 3, 7]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [2, 0, 16, 2], "texture": "#0"},
|
|
||||||
"east": {"uv": [0, 0, 14, 2], "texture": "#0"},
|
|
||||||
"south": {"uv": [0, 0, 14, 2], "texture": "#0"},
|
|
||||||
"west": {"uv": [1, 0, 15, 2], "texture": "#0"},
|
|
||||||
"up": {"uv": [0, 1, 14, 15], "texture": "#0"},
|
|
||||||
"down": {"uv": [0, 0, 14, 14], "texture": "#0"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [3, 5, 2],
|
|
||||||
"to": [4, 6, 3],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [7, 5, 7]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [13, 1, 14, 2], "texture": "#1"},
|
|
||||||
"east": {"uv": [12, 1, 13, 2], "texture": "#1"},
|
|
||||||
"south": {"uv": [2, 1, 3, 2], "texture": "#1"},
|
|
||||||
"west": {"uv": [2, 1, 3, 2], "texture": "#1"},
|
|
||||||
"up": {"uv": [2, 2, 3, 3], "texture": "#1"},
|
|
||||||
"down": {"uv": [2, 12, 3, 13], "texture": "#1"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [6, 5, 2],
|
|
||||||
"to": [7, 6, 3],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [10, 5, 7]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [13, 1, 14, 2], "texture": "#1"},
|
|
||||||
"east": {"uv": [12, 1, 13, 2], "texture": "#1"},
|
|
||||||
"south": {"uv": [2, 1, 3, 2], "texture": "#1"},
|
|
||||||
"west": {"uv": [2, 1, 3, 2], "texture": "#1"},
|
|
||||||
"up": {"uv": [2, 2, 3, 3], "texture": "#1"},
|
|
||||||
"down": {"uv": [2, 12, 3, 13], "texture": "#1"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [9, 5, 2],
|
|
||||||
"to": [10, 6, 3],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [13, 5, 7]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [13, 1, 14, 2], "texture": "#1"},
|
|
||||||
"east": {"uv": [12, 1, 13, 2], "texture": "#1"},
|
|
||||||
"south": {"uv": [2, 1, 3, 2], "texture": "#1"},
|
|
||||||
"west": {"uv": [2, 1, 3, 2], "texture": "#1"},
|
|
||||||
"up": {"uv": [2, 2, 3, 3], "texture": "#1"},
|
|
||||||
"down": {"uv": [2, 12, 3, 13], "texture": "#1"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [3, 5, 5],
|
|
||||||
"to": [13, 7, 13],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [16, 5, 17]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [5, 0, 15, 2], "texture": "#0"},
|
|
||||||
"east": {"uv": [6, 0, 14, 2], "texture": "#0"},
|
|
||||||
"south": {"uv": [1, 0, 11, 2], "texture": "#0"},
|
|
||||||
"west": {"uv": [2, 0, 10, 2], "texture": "#0"},
|
|
||||||
"up": {"uv": [1, 2, 11, 10], "texture": "#0"},
|
|
||||||
"down": {"uv": [1, 6, 11, 14], "texture": "#0"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [1, 2, 3],
|
|
||||||
"to": [15, 3, 15],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [11, 2, 2]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [0, 1, 14, 2], "texture": "#2"},
|
|
||||||
"east": {"uv": [0, 1, 12, 2], "texture": "#0"},
|
|
||||||
"south": {"uv": [0, 1, 14, 2], "texture": "#0"},
|
|
||||||
"west": {"uv": [1, 1, 13, 2], "texture": "#0"},
|
|
||||||
"up": {"uv": [0, 1, 14, 13], "texture": "#2"},
|
|
||||||
"down": {"uv": [0, 0, 14, 12], "texture": "#2"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [1, 2, 1],
|
|
||||||
"to": [8, 3, 3],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [11, 2, 1]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [7, 1, 14, 2], "texture": "#2"},
|
|
||||||
"east": {"uv": [11, 1, 13, 2], "texture": "#2"},
|
|
||||||
"south": {"uv": [0, 1, 7, 2], "texture": "#2"},
|
|
||||||
"west": {"uv": [0, 1, 2, 2], "texture": "#2"},
|
|
||||||
"up": {"uv": [0, 0, 7, 2], "texture": "#2"},
|
|
||||||
"down": {"uv": [0, 11, 7, 13], "texture": "#2"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [14, 2, 1],
|
|
||||||
"to": [15, 3, 3],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [18, 2, 1]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [7, 1, 8, 2], "texture": "#2"},
|
|
||||||
"east": {"uv": [11, 1, 13, 2], "texture": "#2"},
|
|
||||||
"south": {"uv": [6, 1, 7, 2], "texture": "#2"},
|
|
||||||
"west": {"uv": [0, 1, 2, 2], "texture": "#2"},
|
|
||||||
"up": {"uv": [6, 0, 7, 2], "texture": "#2"},
|
|
||||||
"down": {"uv": [6, 11, 7, 13], "texture": "#2"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"mappings": {
|
|
||||||
"default": {
|
|
||||||
"map": {
|
|
||||||
"0": "mailbox_base",
|
|
||||||
"1": "label_copy_machine_buttons",
|
|
||||||
"2": "label_copy_machine_line"
|
|
||||||
},
|
|
||||||
"name": "default"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.21.11",
|
|
||||||
"credit": "Made with Blockbench",
|
|
||||||
"textures": {
|
|
||||||
"0": "3",
|
|
||||||
"1": "2",
|
|
||||||
"2": "1",
|
|
||||||
"particle": "3"
|
|
||||||
},
|
|
||||||
"elements": [
|
|
||||||
{
|
|
||||||
"from": [7, 0, 7],
|
|
||||||
"to": [9, 7, 9],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [7, 0, 7]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [0, 9, 2, 16], "texture": "#0"},
|
|
||||||
"east": {"uv": [0, 9, 2, 16], "texture": "#0"},
|
|
||||||
"south": {"uv": [0, 9, 2, 16], "texture": "#0"},
|
|
||||||
"west": {"uv": [0, 9, 2, 16], "texture": "#0"},
|
|
||||||
"up": {"uv": [0, 0, 2, 2], "texture": "#0"},
|
|
||||||
"down": {"uv": [0, 0, 2, 2], "texture": "#0"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [4, 7, 0],
|
|
||||||
"to": [12, 13, 16],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [7, 7, 7]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [0, 2, 8, 8], "texture": "#2"},
|
|
||||||
"east": {"uv": [0, 2, 16, 8], "texture": "#2"},
|
|
||||||
"south": {"uv": [0, 2, 8, 8], "texture": "#2"},
|
|
||||||
"west": {"uv": [0, 2, 16, 8], "texture": "#2"},
|
|
||||||
"up": {"uv": [0, 0, 8, 16], "texture": "#2"},
|
|
||||||
"down": {"uv": [0, 0, 8, 16], "texture": "#2"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [5, 13, 0],
|
|
||||||
"to": [11, 14, 16],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [7, 13, 7]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [1, 1, 7, 2], "texture": "#2"},
|
|
||||||
"east": {"uv": [0, 1, 16, 2], "texture": "#2"},
|
|
||||||
"south": {"uv": [0, 1, 6, 2], "texture": "#2"},
|
|
||||||
"west": {"uv": [0, 1, 16, 2], "texture": "#2"},
|
|
||||||
"up": {"uv": [0, 0, 6, 16], "texture": "#2"},
|
|
||||||
"down": {"uv": [0, 0, 6, 16], "texture": "#2"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [6, 14, 0],
|
|
||||||
"to": [10, 15, 16],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [7, 14, 7]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [2, 1, 6, 2], "texture": "#2"},
|
|
||||||
"east": {"uv": [0, 1, 16, 2], "texture": "#2"},
|
|
||||||
"south": {"uv": [1, 1, 5, 2], "texture": "#2"},
|
|
||||||
"west": {"uv": [0, 1, 16, 2], "texture": "#2"},
|
|
||||||
"up": {"uv": [1, 0, 5, 16], "texture": "#2"},
|
|
||||||
"down": {"uv": [1, 0, 5, 16], "texture": "#2"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [7, 15, 0],
|
|
||||||
"to": [9, 16, 16],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [7, 15, 7]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [3, 1, 5, 2], "texture": "#2"},
|
|
||||||
"east": {"uv": [0, 1, 16, 2], "texture": "#2"},
|
|
||||||
"south": {"uv": [2, 1, 4, 2], "texture": "#2"},
|
|
||||||
"west": {"uv": [0, 1, 16, 2], "texture": "#2"},
|
|
||||||
"up": {"uv": [2, 0, 4, 16], "texture": "#2"},
|
|
||||||
"down": {"uv": [2, 0, 4, 16], "texture": "#2"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": [3, 11, 2],
|
|
||||||
"to": [4, 16, 4],
|
|
||||||
"rotation": {"angle": 0, "axis": "y", "origin": [2, 11, 2]},
|
|
||||||
"faces": {
|
|
||||||
"north": {"uv": [0, 3, 1, 8], "texture": "#1"},
|
|
||||||
"east": {"uv": [0, 3, 2, 8], "texture": "#1"},
|
|
||||||
"south": {"uv": [1, 3, 2, 8], "texture": "#1"},
|
|
||||||
"west": {"uv": [0, 3, 2, 8], "texture": "#1"},
|
|
||||||
"up": {"uv": [1, 0, 2, 2], "texture": "#1"},
|
|
||||||
"down": {"uv": [1, 0, 2, 2], "texture": "#1"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"mappings": {
|
|
||||||
"default": {
|
|
||||||
"map": {
|
|
||||||
"0": "mailbox_rod",
|
|
||||||
"1": "mailbox_flag",
|
|
||||||
"2": "mailbox_base"
|
|
||||||
},
|
|
||||||
"name": "default"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -8,11 +8,11 @@
|
|||||||
"registry_name": "condensed_netherrack",
|
"registry_name": "condensed_netherrack",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/condensed_netherrack.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/condensed_netherrack.json",
|
"src/main/resources/assets/nims_random_bullshit/blockstates/condensed_netherrack.json",
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/block/CondensedNetherrackBlock.java",
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/condensed_netherrack.json",
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/condensed_netherrack.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/condensed_netherrack.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/condensed_netherrack.json",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/CondensedNetherrackBlock.java"
|
"src/main/resources/assets/nims_random_bullshit/models/item/condensed_netherrack.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Netherracks"
|
"path": "~/Netherracks"
|
||||||
@@ -25,11 +25,11 @@
|
|||||||
"registry_name": "condensed_condensed_netherrack",
|
"registry_name": "condensed_condensed_netherrack",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/condensed_condensed_netherrack.json",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/CondensedCondensedNetherrackBlock.java",
|
"src/main/java/net/mcreator/nimsrandombullshit/block/CondensedCondensedNetherrackBlock.java",
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/condensed_condensed_netherrack.json",
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/condensed_condensed_netherrack.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/condensed_condensed_netherrack.json",
|
"src/main/resources/assets/nims_random_bullshit/blockstates/condensed_condensed_netherrack.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/condensed_condensed_netherrack.json"
|
"src/main/resources/assets/nims_random_bullshit/models/block/condensed_condensed_netherrack.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/item/condensed_condensed_netherrack.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Netherracks"
|
"path": "~/Netherracks"
|
||||||
@@ -42,11 +42,11 @@
|
|||||||
"registry_name": "condensed_condensed_condensed_netherrack",
|
"registry_name": "condensed_condensed_condensed_netherrack",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/CondensedCondensedCondensedNetherrackBlock.java",
|
"src/main/resources/assets/nims_random_bullshit/blockstates/condensed_condensed_condensed_netherrack.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/condensed_condensed_condensed_netherrack.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/condensed_condensed_condensed_netherrack.json",
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/condensed_condensed_condensed_netherrack.json",
|
"src/main/java/net/mcreator/nimsrandombullshit/block/CondensedCondensedCondensedNetherrackBlock.java",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/condensed_condensed_condensed_netherrack.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/condensed_condensed_condensed_netherrack.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/condensed_condensed_condensed_netherrack.json"
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/condensed_condensed_condensed_netherrack.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Netherracks"
|
"path": "~/Netherracks"
|
||||||
@@ -137,8 +137,8 @@
|
|||||||
"registry_name": "block_eater",
|
"registry_name": "block_eater",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/BlockEaterItem.java",
|
"src/main/resources/assets/nims_random_bullshit/models/item/block_eater.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/block_eater.json"
|
"src/main/java/net/mcreator/nimsrandombullshit/item/BlockEaterItem.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Netherracks"
|
"path": "~/Netherracks"
|
||||||
@@ -239,15 +239,15 @@
|
|||||||
"registry_name": "broken_glass",
|
"registry_name": "broken_glass",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/broken_glass_noside.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/broken_glass_noside_alt.json",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/BrokenGlassBlock.java",
|
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/broken_glass.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/broken_glass.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/broken_glass.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/broken_glass.json",
|
"src/main/resources/assets/nims_random_bullshit/blockstates/broken_glass.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/block/broken_glass_side.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/block/broken_glass_noside.json",
|
||||||
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/broken_glass.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/broken_glass_side_alt.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/broken_glass_side_alt.json",
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/block/BrokenGlassBlock.java",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/broken_glass_post.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/broken_glass_post.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/broken_glass_side.json"
|
"src/main/resources/assets/nims_random_bullshit/models/block/broken_glass_noside_alt.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Other"
|
"path": "~/Other"
|
||||||
@@ -273,9 +273,9 @@
|
|||||||
"registry_name": "quadra_condensed_netherrack",
|
"registry_name": "quadra_condensed_netherrack",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/blockstates/quadra_condensed_netherrack.json",
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/quadra_condensed_netherrack.json",
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/quadra_condensed_netherrack.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/quadra_condensed_netherrack.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/quadra_condensed_netherrack.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/quadra_condensed_netherrack.json",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/QuadraCondensedNetherrackBlock.java",
|
"src/main/java/net/mcreator/nimsrandombullshit/block/QuadraCondensedNetherrackBlock.java",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/quadra_condensed_netherrack.json"
|
"src/main/resources/assets/nims_random_bullshit/models/item/quadra_condensed_netherrack.json"
|
||||||
]
|
]
|
||||||
@@ -304,8 +304,8 @@
|
|||||||
"registry_name": "netherrackite",
|
"registry_name": "netherrackite",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/netherrackite.json",
|
"src/main/java/net/mcreator/nimsrandombullshit/item/NetherrackiteItem.java",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/NetherrackiteItem.java"
|
"src/main/resources/assets/nims_random_bullshit/models/item/netherrackite.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Netherracks"
|
"path": "~/Netherracks"
|
||||||
@@ -371,10 +371,10 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/penta_condensed_netherrack.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/penta_condensed_netherrack.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/penta_condensed_netherrack.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/penta_condensed_netherrack.json",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/PentaCondensedNetherrackBlock.java",
|
"src/main/java/net/mcreator/nimsrandombullshit/block/PentaCondensedNetherrackBlock.java",
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/penta_condensed_netherrack.json"
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/penta_condensed_netherrack.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/item/penta_condensed_netherrack.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/blockstates/penta_condensed_netherrack.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Netherracks"
|
"path": "~/Netherracks"
|
||||||
@@ -413,11 +413,11 @@
|
|||||||
"registry_name": "hexa_condensed_netherrack",
|
"registry_name": "hexa_condensed_netherrack",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/HexaCondensedNetherrackBlock.java",
|
"src/main/resources/assets/nims_random_bullshit/blockstates/hexa_condensed_netherrack.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/hexa_condensed_netherrack.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/hexa_condensed_netherrack.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/hexa_condensed_netherrack.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/item/hexa_condensed_netherrack.json",
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/hexa_condensed_netherrack.json",
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/hexa_condensed_netherrack.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/hexa_condensed_netherrack.json"
|
"src/main/java/net/mcreator/nimsrandombullshit/block/HexaCondensedNetherrackBlock.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Netherracks"
|
"path": "~/Netherracks"
|
||||||
@@ -505,8 +505,8 @@
|
|||||||
"registry_name": "lapis_lazuli_nugget",
|
"registry_name": "lapis_lazuli_nugget",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/LapisLazuliNuggetItem.java",
|
"src/main/resources/assets/nims_random_bullshit/models/item/lapis_lazuli_nugget.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/lapis_lazuli_nugget.json"
|
"src/main/java/net/mcreator/nimsrandombullshit/item/LapisLazuliNuggetItem.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Lapis"
|
"path": "~/Lapis"
|
||||||
@@ -545,8 +545,8 @@
|
|||||||
"registry_name": "magic_dust",
|
"registry_name": "magic_dust",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/MagicDustItem.java",
|
"src/main/resources/assets/nims_random_bullshit/models/item/magic_dust.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/magic_dust.json"
|
"src/main/java/net/mcreator/nimsrandombullshit/item/MagicDustItem.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Lapis"
|
"path": "~/Lapis"
|
||||||
@@ -816,8 +816,8 @@
|
|||||||
"registry_name": "golden_berries",
|
"registry_name": "golden_berries",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/golden_berries.json",
|
"src/main/java/net/mcreator/nimsrandombullshit/item/GoldenBerriesItem.java",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/GoldenBerriesItem.java"
|
"src/main/resources/assets/nims_random_bullshit/models/item/golden_berries.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Other"
|
"path": "~/Other"
|
||||||
@@ -843,9 +843,8 @@
|
|||||||
"registry_name": "ore_miner_gui",
|
"registry_name": "ore_miner_gui",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/client/gui/OreMinerGUIScreen.java",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/world/inventory/OreMinerGUIMenu.java",
|
"src/main/java/net/mcreator/nimsrandombullshit/world/inventory/OreMinerGUIMenu.java",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/network/OreMinerGUIButtonMessage.java"
|
"src/main/java/net/mcreator/nimsrandombullshit/client/gui/OreMinerGUIScreen.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/OreMiner"
|
"path": "~/OreMiner"
|
||||||
@@ -891,47 +890,12 @@
|
|||||||
"registry_name": "ore_miner",
|
"registry_name": "ore_miner",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/OreMinerBlock.java",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/entity/OreMinerBlockEntity.java",
|
"src/main/java/net/mcreator/nimsrandombullshit/block/entity/OreMinerBlockEntity.java",
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/ore_miner.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/ore_miner.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/ore_miner.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/ore_miner.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/ore_miner.json"
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/ore_miner.json",
|
||||||
]
|
"src/main/resources/assets/nims_random_bullshit/blockstates/ore_miner.json",
|
||||||
},
|
"src/main/java/net/mcreator/nimsrandombullshit/block/OreMinerBlock.java",
|
||||||
"path": "~/OreMiner"
|
"src/main/resources/assets/nims_random_bullshit/models/block/ore_miner.json"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "OreMinerMineButtonPressed",
|
|
||||||
"type": "procedure",
|
|
||||||
"compiles": true,
|
|
||||||
"locked_code": false,
|
|
||||||
"registry_name": "ore_miner_mine_button_pressed",
|
|
||||||
"metadata": {
|
|
||||||
"files": [
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/procedures/OreMinerMineButtonPressedProcedure.java"
|
|
||||||
],
|
|
||||||
"dependencies": [
|
|
||||||
{
|
|
||||||
"name": "entity",
|
|
||||||
"type": "entity"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "x",
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "y",
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "z",
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "world",
|
|
||||||
"type": "world"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/OreMiner"
|
"path": "~/OreMiner"
|
||||||
@@ -1246,11 +1210,11 @@
|
|||||||
"registry_name": "netherrack_juice",
|
"registry_name": "netherrack_juice",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/NetherrackJuiceBlock.java",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/netherrack_juice.json",
|
"src/main/resources/assets/nims_random_bullshit/blockstates/netherrack_juice.json",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/fluid/NetherrackJuiceFluid.java",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/NetherrackJuiceItem.java",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/netherrack_juice.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/netherrack_juice.json",
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/item/NetherrackJuiceItem.java",
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/fluid/NetherrackJuiceFluid.java",
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/block/NetherrackJuiceBlock.java",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/fluid/types/NetherrackJuiceFluidType.java",
|
"src/main/java/net/mcreator/nimsrandombullshit/fluid/types/NetherrackJuiceFluidType.java",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/netherrack_juice_bucket.json"
|
"src/main/resources/assets/nims_random_bullshit/models/item/netherrack_juice_bucket.json"
|
||||||
]
|
]
|
||||||
@@ -1322,8 +1286,8 @@
|
|||||||
"registry_name": "tux",
|
"registry_name": "tux",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/entity/TuxEntity.java",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/tux_spawn_egg.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/tux_spawn_egg.json",
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/entity/TuxEntity.java",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/client/renderer/TuxRenderer.java"
|
"src/main/java/net/mcreator/nimsrandombullshit/client/renderer/TuxRenderer.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -1501,11 +1465,11 @@
|
|||||||
"registry_name": "redstone_bricks",
|
"registry_name": "redstone_bricks",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/redstone_bricks.json",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/RedstoneBricksBlock.java",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_bricks.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_bricks.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/item/redstone_bricks.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/blockstates/redstone_bricks.json",
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/redstone_bricks.json",
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/redstone_bricks.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/redstone_bricks.json"
|
"src/main/java/net/mcreator/nimsrandombullshit/block/RedstoneBricksBlock.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Redstone"
|
"path": "~/Redstone"
|
||||||
@@ -1518,13 +1482,13 @@
|
|||||||
"registry_name": "redstone_brick_stairs",
|
"registry_name": "redstone_brick_stairs",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_stairs.json",
|
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/redstone_brick_stairs.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_stairs_outer.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/redstone_brick_stairs.json",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/RedstoneBrickStairsBlock.java",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/redstone_brick_stairs.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/redstone_brick_stairs.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_stairs_inner.json"
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/redstone_brick_stairs.json",
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/block/RedstoneBrickStairsBlock.java",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/blockstates/redstone_brick_stairs.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_stairs_inner.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_stairs.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_stairs_outer.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Redstone"
|
"path": "~/Redstone"
|
||||||
@@ -1537,12 +1501,12 @@
|
|||||||
"registry_name": "redstone_brick_slabs",
|
"registry_name": "redstone_brick_slabs",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/redstone_brick_slabs.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_slabs.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/redstone_brick_slabs.json",
|
"src/main/resources/assets/nims_random_bullshit/blockstates/redstone_brick_slabs.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/redstone_brick_slabs.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/redstone_brick_slabs.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_slabs_top.json",
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/redstone_brick_slabs.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_slabs.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_slabs_full.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_slabs_full.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_slabs_top.json",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/RedstoneBrickSlabsBlock.java"
|
"src/main/java/net/mcreator/nimsrandombullshit/block/RedstoneBrickSlabsBlock.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -1556,14 +1520,14 @@
|
|||||||
"registry_name": "redstone_brick_walls",
|
"registry_name": "redstone_brick_walls",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/redstone_brick_walls.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_walls.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/redstone_brick_walls.json",
|
"src/main/resources/assets/nims_random_bullshit/blockstates/redstone_brick_walls.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/redstone_brick_walls.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_walls_post.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_walls_post.json",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/RedstoneBrickWallsBlock.java",
|
"src/main/resources/assets/nims_random_bullshit/models/item/redstone_brick_walls.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_walls.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_walls_inventory.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_walls_inventory.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_walls_side_tall.json"
|
"src/main/resources/assets/nims_random_bullshit/models/block/redstone_brick_walls_side_tall.json",
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/block/RedstoneBrickWallsBlock.java",
|
||||||
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/redstone_brick_walls.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Redstone"
|
"path": "~/Redstone"
|
||||||
@@ -1576,11 +1540,11 @@
|
|||||||
"registry_name": "magma_bricks",
|
"registry_name": "magma_bricks",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/magma_bricks.json",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/MagmaBricksBlock.java",
|
"src/main/java/net/mcreator/nimsrandombullshit/block/MagmaBricksBlock.java",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/blockstates/magma_bricks.json",
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/magma_bricks.json",
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/magma_bricks.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_bricks.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/magma_bricks.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/magma_bricks.json"
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_bricks.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Magma"
|
"path": "~/Magma"
|
||||||
@@ -1593,13 +1557,13 @@
|
|||||||
"registry_name": "magma_brick_stairs",
|
"registry_name": "magma_brick_stairs",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/magma_brick_stairs.json",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/MagmaBrickStairsBlock.java",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_stairs_outer.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/magma_brick_stairs.json",
|
"src/main/resources/assets/nims_random_bullshit/blockstates/magma_brick_stairs.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_stairs_inner.json",
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/magma_brick_stairs.json",
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/magma_brick_stairs.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_stairs.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_stairs_outer.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_stairs_inner.json"
|
"src/main/java/net/mcreator/nimsrandombullshit/block/MagmaBrickStairsBlock.java",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/item/magma_brick_stairs.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_stairs.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Magma"
|
"path": "~/Magma"
|
||||||
@@ -1612,13 +1576,13 @@
|
|||||||
"registry_name": "magma_brick_slabs",
|
"registry_name": "magma_brick_slabs",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/MagmaBrickSlabsBlock.java",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_slabs_full.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_slabs_full.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_slabs.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_slabs.json",
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/block/MagmaBrickSlabsBlock.java",
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/magma_brick_slabs.json",
|
"src/main/resources/assets/nims_random_bullshit/blockstates/magma_brick_slabs.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/magma_brick_slabs.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_slabs_top.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_slabs_top.json",
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/magma_brick_slabs.json"
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/magma_brick_slabs.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/item/magma_brick_slabs.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Magma"
|
"path": "~/Magma"
|
||||||
@@ -1633,11 +1597,11 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_walls_post.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_walls_post.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_walls.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_walls.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_walls_side_tall.json",
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/magma_brick_walls.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/magma_brick_walls.json",
|
"src/main/resources/assets/nims_random_bullshit/blockstates/magma_brick_walls.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/magma_brick_walls.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/magma_brick_walls.json",
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/magma_brick_walls.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_walls_inventory.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_walls_inventory.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_walls_side_tall.json",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/MagmaBrickWallsBlock.java"
|
"src/main/java/net/mcreator/nimsrandombullshit/block/MagmaBrickWallsBlock.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -1651,12 +1615,12 @@
|
|||||||
"registry_name": "magma_brick_pressure_plate",
|
"registry_name": "magma_brick_pressure_plate",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/MagmaBrickPressurePlateBlock.java",
|
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/magma_brick_pressure_plate.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_pressure_plate.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_pressure_plate_down.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/magma_brick_pressure_plate.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/magma_brick_pressure_plate.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/magma_brick_pressure_plate.json"
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_pressure_plate_down.json",
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/block/MagmaBrickPressurePlateBlock.java",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/blockstates/magma_brick_pressure_plate.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_pressure_plate.json",
|
||||||
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/magma_brick_pressure_plate.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Magma"
|
"path": "~/Magma"
|
||||||
@@ -1671,11 +1635,11 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/magma_brick_button.json",
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/magma_brick_button.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_button_inventory.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_button_inventory.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/item/magma_brick_button.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_button.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_button.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_button_pressed.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/magma_brick_button_pressed.json",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/MagmaBrickButtonBlock.java",
|
"src/main/resources/assets/nims_random_bullshit/blockstates/magma_brick_button.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/magma_brick_button.json",
|
"src/main/java/net/mcreator/nimsrandombullshit/block/MagmaBrickButtonBlock.java"
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/magma_brick_button.json"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Magma"
|
"path": "~/Magma"
|
||||||
@@ -1832,8 +1796,8 @@
|
|||||||
"registry_name": "cheese",
|
"registry_name": "cheese",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/cheese.json",
|
"src/main/java/net/mcreator/nimsrandombullshit/item/CheeseItem.java",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/CheeseItem.java"
|
"src/main/resources/assets/nims_random_bullshit/models/item/cheese.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Other"
|
"path": "~/Other"
|
||||||
@@ -1898,8 +1862,8 @@
|
|||||||
"registry_name": "bedrock_pickaxe",
|
"registry_name": "bedrock_pickaxe",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/bedrock_pickaxe.json",
|
"src/main/java/net/mcreator/nimsrandombullshit/item/BedrockPickaxeItem.java",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/BedrockPickaxeItem.java"
|
"src/main/resources/assets/nims_random_bullshit/models/item/bedrock_pickaxe.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Bedrock"
|
"path": "~/Bedrock"
|
||||||
@@ -1935,8 +1899,8 @@
|
|||||||
"registry_name": "bedrock_upgrade_template",
|
"registry_name": "bedrock_upgrade_template",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/BedrockUpgradeTemplateItem.java",
|
"src/main/resources/assets/nims_random_bullshit/models/item/bedrock_upgrade_template.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/bedrock_upgrade_template.json"
|
"src/main/java/net/mcreator/nimsrandombullshit/item/BedrockUpgradeTemplateItem.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Bedrock"
|
"path": "~/Bedrock"
|
||||||
@@ -1988,12 +1952,12 @@
|
|||||||
"registry_name": "bedrockifier",
|
"registry_name": "bedrockifier",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/bedrockifier.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/bedrockifier.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/bedrockifier.json",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/BedrockifierBlock.java",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/entity/BedrockifierBlockEntity.java",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/bedrockifier.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/bedrockifier.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/bedrockifier.json"
|
"src/main/java/net/mcreator/nimsrandombullshit/block/BedrockifierBlock.java",
|
||||||
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/bedrockifier.json",
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/block/entity/BedrockifierBlockEntity.java",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/blockstates/bedrockifier.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Bedrock"
|
"path": "~/Bedrock"
|
||||||
@@ -2006,48 +1970,12 @@
|
|||||||
"registry_name": "bedrockifier_gui",
|
"registry_name": "bedrockifier_gui",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/network/BedrockifierGUIButtonMessage.java",
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/world/inventory/BedrockifierGUIMenu.java",
|
"src/main/java/net/mcreator/nimsrandombullshit/world/inventory/BedrockifierGUIMenu.java",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/client/gui/BedrockifierGUIScreen.java"
|
"src/main/java/net/mcreator/nimsrandombullshit/client/gui/BedrockifierGUIScreen.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Bedrock"
|
"path": "~/Bedrock"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "BedrockifierButtonPressLogic",
|
|
||||||
"type": "procedure",
|
|
||||||
"compiles": true,
|
|
||||||
"locked_code": false,
|
|
||||||
"registry_name": "bedrockifier_button_press_logic",
|
|
||||||
"metadata": {
|
|
||||||
"files": [
|
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/procedures/BedrockifierButtonPressLogicProcedure.java"
|
|
||||||
],
|
|
||||||
"dependencies": [
|
|
||||||
{
|
|
||||||
"name": "entity",
|
|
||||||
"type": "entity"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "x",
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "y",
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "z",
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "world",
|
|
||||||
"type": "world"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"path": "~/Bedrock"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "BedrockifierRecipe",
|
"name": "BedrockifierRecipe",
|
||||||
"type": "recipe",
|
"type": "recipe",
|
||||||
@@ -2069,8 +1997,8 @@
|
|||||||
"registry_name": "magic_egg",
|
"registry_name": "magic_egg",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/magic_egg.json",
|
"src/main/java/net/mcreator/nimsrandombullshit/item/MagicEggItem.java",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/MagicEggItem.java"
|
"src/main/resources/assets/nims_random_bullshit/models/item/magic_egg.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/SpawnEggs"
|
"path": "~/SpawnEggs"
|
||||||
@@ -2776,14 +2704,14 @@
|
|||||||
"registry_name": "orichalcum_ore",
|
"registry_name": "orichalcum_ore",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/OrichalcumOreBlock.java",
|
|
||||||
"src/main/resources/data/nims_random_bullshit/worldgen/configured_feature/orichalcum_ore.json",
|
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/orichalcum_ore.json",
|
|
||||||
"src/main/resources/data/nims_random_bullshit/worldgen/placed_feature/orichalcum_ore.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_ore.json",
|
|
||||||
"src/main/resources/data/nims_random_bullshit/forge/biome_modifier/orichalcum_ore_biome_modifier.json",
|
"src/main/resources/data/nims_random_bullshit/forge/biome_modifier/orichalcum_ore_biome_modifier.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_ore.json",
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/block/OrichalcumOreBlock.java",
|
||||||
|
"src/main/resources/data/nims_random_bullshit/worldgen/placed_feature/orichalcum_ore.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/blockstates/orichalcum_ore.json",
|
||||||
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/orichalcum_ore.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/orichalcum_ore.json",
|
"src/main/resources/assets/nims_random_bullshit/models/block/orichalcum_ore.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/orichalcum_ore.json"
|
"src/main/resources/data/nims_random_bullshit/worldgen/configured_feature/orichalcum_ore.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Orichalcum"
|
"path": "~/Orichalcum"
|
||||||
@@ -2796,11 +2724,11 @@
|
|||||||
"registry_name": "orichalcum_block",
|
"registry_name": "orichalcum_block",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/block/orichalcum_block.json",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_block.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_block.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/block/orichalcum_block.json",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/blockstates/orichalcum_block.json",
|
||||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/orichalcum_block.json",
|
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/orichalcum_block.json",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/block/OrichalcumBlockBlock.java",
|
"src/main/java/net/mcreator/nimsrandombullshit/block/OrichalcumBlockBlock.java"
|
||||||
"src/main/resources/assets/nims_random_bullshit/blockstates/orichalcum_block.json"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Orichalcum"
|
"path": "~/Orichalcum"
|
||||||
@@ -2852,8 +2780,8 @@
|
|||||||
"registry_name": "orichalcum_pickaxe",
|
"registry_name": "orichalcum_pickaxe",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/OrichalcumPickaxeItem.java",
|
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_pickaxe.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_pickaxe.json"
|
"src/main/java/net/mcreator/nimsrandombullshit/item/OrichalcumPickaxeItem.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Orichalcum"
|
"path": "~/Orichalcum"
|
||||||
@@ -2866,8 +2794,8 @@
|
|||||||
"registry_name": "orichalcum_axe",
|
"registry_name": "orichalcum_axe",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/OrichalcumAxeItem.java",
|
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_axe.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_axe.json"
|
"src/main/java/net/mcreator/nimsrandombullshit/item/OrichalcumAxeItem.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Orichalcum"
|
"path": "~/Orichalcum"
|
||||||
@@ -2908,8 +2836,8 @@
|
|||||||
"registry_name": "orichalcum_hoe",
|
"registry_name": "orichalcum_hoe",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/OrichalcumHoeItem.java",
|
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_hoe.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_hoe.json"
|
"src/main/java/net/mcreator/nimsrandombullshit/item/OrichalcumHoeItem.java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Orichalcum"
|
"path": "~/Orichalcum"
|
||||||
@@ -2988,10 +2916,10 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_armor_helmet.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_armor_helmet.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_armor_leggings.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_armor_chestplate.json",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/OrichalcumArmorItem.java",
|
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_armor_boots.json",
|
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_armor_boots.json",
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_armor_chestplate.json"
|
"src/main/java/net/mcreator/nimsrandombullshit/item/OrichalcumArmorItem.java",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/item/orichalcum_armor_leggings.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Orichalcum"
|
"path": "~/Orichalcum"
|
||||||
@@ -3056,9 +2984,9 @@
|
|||||||
"registry_name": "orichalcum_feature",
|
"registry_name": "orichalcum_feature",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
|
"src/main/resources/data/nims_random_bullshit/worldgen/configured_feature/orichalcum_feature.json",
|
||||||
"src/main/resources/data/nims_random_bullshit/worldgen/placed_feature/orichalcum_feature.json",
|
"src/main/resources/data/nims_random_bullshit/worldgen/placed_feature/orichalcum_feature.json",
|
||||||
"src/main/resources/data/nims_random_bullshit/forge/biome_modifier/orichalcum_feature_biome_modifier.json",
|
"src/main/resources/data/nims_random_bullshit/forge/biome_modifier/orichalcum_feature_biome_modifier.json"
|
||||||
"src/main/resources/data/nims_random_bullshit/worldgen/configured_feature/orichalcum_feature.json"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Orichalcum"
|
"path": "~/Orichalcum"
|
||||||
@@ -3116,8 +3044,8 @@
|
|||||||
"registry_name": "bedrock_shard",
|
"registry_name": "bedrock_shard",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/main/resources/assets/nims_random_bullshit/models/item/bedrock_shard.json",
|
"src/main/java/net/mcreator/nimsrandombullshit/item/BedrockShardItem.java",
|
||||||
"src/main/java/net/mcreator/nimsrandombullshit/item/BedrockShardItem.java"
|
"src/main/resources/assets/nims_random_bullshit/models/item/bedrock_shard.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Bedrock"
|
"path": "~/Bedrock"
|
||||||
@@ -3303,6 +3231,134 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"path": "~/Advancements"
|
"path": "~/Advancements"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "OreMinerTickUpdate",
|
||||||
|
"type": "procedure",
|
||||||
|
"compiles": true,
|
||||||
|
"locked_code": false,
|
||||||
|
"registry_name": "ore_miner_tick_update",
|
||||||
|
"metadata": {
|
||||||
|
"files": [
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/procedures/OreMinerTickUpdateProcedure.java"
|
||||||
|
],
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "x",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "y",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "z",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "world",
|
||||||
|
"type": "world"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"path": "~/OreMiner"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "BedrockifierLogic",
|
||||||
|
"type": "procedure",
|
||||||
|
"compiles": true,
|
||||||
|
"locked_code": false,
|
||||||
|
"registry_name": "bedrockifier_logic",
|
||||||
|
"metadata": {
|
||||||
|
"files": [
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/procedures/BedrockifierLogicProcedure.java"
|
||||||
|
],
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "x",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "y",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "z",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "world",
|
||||||
|
"type": "world"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"path": "~/Bedrock"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "BedrockEater",
|
||||||
|
"type": "item",
|
||||||
|
"compiles": true,
|
||||||
|
"locked_code": false,
|
||||||
|
"registry_name": "bedrock_eater",
|
||||||
|
"metadata": {
|
||||||
|
"files": [
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/item/BedrockEaterItem.java",
|
||||||
|
"src/main/resources/assets/nims_random_bullshit/models/item/bedrock_eater.json"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"path": "~/Bedrock"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "BedrockEaterRightClick",
|
||||||
|
"type": "procedure",
|
||||||
|
"compiles": true,
|
||||||
|
"locked_code": false,
|
||||||
|
"registry_name": "bedrock_eater_right_click",
|
||||||
|
"metadata": {
|
||||||
|
"files": [
|
||||||
|
"src/main/java/net/mcreator/nimsrandombullshit/procedures/BedrockEaterRightClickProcedure.java"
|
||||||
|
],
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "entity",
|
||||||
|
"type": "entity"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "itemstack",
|
||||||
|
"type": "itemstack"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "y",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "z",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "world",
|
||||||
|
"type": "world"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"path": "~/Bedrock"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "BedrockEaterRecipe",
|
||||||
|
"type": "recipe",
|
||||||
|
"compiles": true,
|
||||||
|
"locked_code": false,
|
||||||
|
"registry_name": "bedrock_eater_recipe",
|
||||||
|
"metadata": {
|
||||||
|
"files": [
|
||||||
|
"src/main/resources/data/nims_random_bullshit/recipes/bedrock_eater_recipe.json"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"path": "~/Bedrock"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"variable_elements": [],
|
"variable_elements": [],
|
||||||
@@ -3434,6 +3490,7 @@
|
|||||||
"item.nims_random_bullshit.netherrack_juice_bucket": "Netherrack Juice Bucket",
|
"item.nims_random_bullshit.netherrack_juice_bucket": "Netherrack Juice Bucket",
|
||||||
"item.nims_random_bullshit.orichalcum": "Orichalcum",
|
"item.nims_random_bullshit.orichalcum": "Orichalcum",
|
||||||
"advancements.magic_egg_advancement.descr": "Obtain a Magic Egg",
|
"advancements.magic_egg_advancement.descr": "Obtain a Magic Egg",
|
||||||
|
"item.nims_random_bullshit.bedrock_eater": "Bedrock Eater",
|
||||||
"block.nims_random_bullshit.rubber_pressure_plate": "Rubber Pressure Plate",
|
"block.nims_random_bullshit.rubber_pressure_plate": "Rubber Pressure Plate",
|
||||||
"item.nims_random_bullshit.orichalcum_armor_leggings": "Orichalcum Leggings",
|
"item.nims_random_bullshit.orichalcum_armor_leggings": "Orichalcum Leggings",
|
||||||
"block.nims_random_bullshit.condensed_netherrack": "Condensed Netherrack",
|
"block.nims_random_bullshit.condensed_netherrack": "Condensed Netherrack",
|
||||||
@@ -3569,7 +3626,7 @@
|
|||||||
"workspaceSettings": {
|
"workspaceSettings": {
|
||||||
"modid": "nims_random_bullshit",
|
"modid": "nims_random_bullshit",
|
||||||
"modName": "Nim\u0027s Random Bullshit",
|
"modName": "Nim\u0027s Random Bullshit",
|
||||||
"version": "1.7.0",
|
"version": "1.7.1",
|
||||||
"description": "Random shit added by Nim. Created with MCreator.",
|
"description": "Random shit added by Nim. Created with MCreator.",
|
||||||
"author": "nimsolated, MCreator",
|
"author": "nimsolated, MCreator",
|
||||||
"websiteURL": "https://mcreator.net",
|
"websiteURL": "https://mcreator.net",
|
||||||
@@ -3579,7 +3636,10 @@
|
|||||||
"requiredMods": [],
|
"requiredMods": [],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"dependants": [],
|
"dependants": [],
|
||||||
"mcreatorDependencies": [],
|
"mcreatorDependencies": [
|
||||||
|
"photon",
|
||||||
|
"pehkui"
|
||||||
|
],
|
||||||
"currentGenerator": "forge-1.20.1",
|
"currentGenerator": "forge-1.20.1",
|
||||||
"credits": "Created using mod maker MCreator - https://mcreator.net/about",
|
"credits": "Created using mod maker MCreator - https://mcreator.net/about",
|
||||||
"modElementsPackage": "net.mcreator.nimsrandombullshit"
|
"modElementsPackage": "net.mcreator.nimsrandombullshit"
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ import net.minecraft.core.Direction;
|
|||||||
import net.minecraft.core.BlockPos;
|
import net.minecraft.core.BlockPos;
|
||||||
|
|
||||||
import net.mcreator.nimsrandombullshit.world.inventory.BedrockifierGUIMenu;
|
import net.mcreator.nimsrandombullshit.world.inventory.BedrockifierGUIMenu;
|
||||||
|
import net.mcreator.nimsrandombullshit.procedures.BedrockifierLogicProcedure;
|
||||||
import net.mcreator.nimsrandombullshit.block.entity.BedrockifierBlockEntity;
|
import net.mcreator.nimsrandombullshit.block.entity.BedrockifierBlockEntity;
|
||||||
|
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
@@ -68,6 +69,14 @@ public class BedrockifierBlock extends Block implements EntityBlock {
|
|||||||
return state.rotate(mirrorIn.getRotation(state.getValue(FACING)));
|
return state.rotate(mirrorIn.getRotation(state.getValue(FACING)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void neighborChanged(BlockState blockstate, Level world, BlockPos pos, Block neighborBlock, BlockPos fromPos, boolean moving) {
|
||||||
|
super.neighborChanged(blockstate, world, pos, neighborBlock, fromPos, moving);
|
||||||
|
if (world.getBestNeighborSignal(pos) > 0) {
|
||||||
|
BedrockifierLogicProcedure.execute(world, pos.getX(), pos.getY(), pos.getZ());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public InteractionResult use(BlockState blockstate, Level world, BlockPos pos, Player entity, InteractionHand hand, BlockHitResult hit) {
|
public InteractionResult use(BlockState blockstate, Level world, BlockPos pos, Player entity, InteractionHand hand, BlockHitResult hit) {
|
||||||
super.use(blockstate, world, pos, entity, hand, hit);
|
super.use(blockstate, world, pos, entity, hand, hit);
|
||||||
|
|||||||
@@ -25,13 +25,16 @@ import net.minecraft.world.MenuProvider;
|
|||||||
import net.minecraft.world.InteractionResult;
|
import net.minecraft.world.InteractionResult;
|
||||||
import net.minecraft.world.InteractionHand;
|
import net.minecraft.world.InteractionHand;
|
||||||
import net.minecraft.world.Containers;
|
import net.minecraft.world.Containers;
|
||||||
|
import net.minecraft.util.RandomSource;
|
||||||
import net.minecraft.server.level.ServerPlayer;
|
import net.minecraft.server.level.ServerPlayer;
|
||||||
|
import net.minecraft.server.level.ServerLevel;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.network.FriendlyByteBuf;
|
import net.minecraft.network.FriendlyByteBuf;
|
||||||
import net.minecraft.core.Direction;
|
import net.minecraft.core.Direction;
|
||||||
import net.minecraft.core.BlockPos;
|
import net.minecraft.core.BlockPos;
|
||||||
|
|
||||||
import net.mcreator.nimsrandombullshit.world.inventory.OreMinerGUIMenu;
|
import net.mcreator.nimsrandombullshit.world.inventory.OreMinerGUIMenu;
|
||||||
|
import net.mcreator.nimsrandombullshit.procedures.OreMinerTickUpdateProcedure;
|
||||||
import net.mcreator.nimsrandombullshit.block.entity.OreMinerBlockEntity;
|
import net.mcreator.nimsrandombullshit.block.entity.OreMinerBlockEntity;
|
||||||
|
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
@@ -68,6 +71,22 @@ public class OreMinerBlock extends Block implements EntityBlock {
|
|||||||
return state.rotate(mirrorIn.getRotation(state.getValue(FACING)));
|
return state.rotate(mirrorIn.getRotation(state.getValue(FACING)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onPlace(BlockState blockstate, Level world, BlockPos pos, BlockState oldState, boolean moving) {
|
||||||
|
super.onPlace(blockstate, world, pos, oldState, moving);
|
||||||
|
world.scheduleTick(pos, this, 200);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void tick(BlockState blockstate, ServerLevel world, BlockPos pos, RandomSource random) {
|
||||||
|
super.tick(blockstate, world, pos, random);
|
||||||
|
int x = pos.getX();
|
||||||
|
int y = pos.getY();
|
||||||
|
int z = pos.getZ();
|
||||||
|
OreMinerTickUpdateProcedure.execute(world, x, y, z);
|
||||||
|
world.scheduleTick(pos, this, 200);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public InteractionResult use(BlockState blockstate, Level world, BlockPos pos, Player entity, InteractionHand hand, BlockHitResult hit) {
|
public InteractionResult use(BlockState blockstate, Level world, BlockPos pos, Player entity, InteractionHand hand, BlockHitResult hit) {
|
||||||
super.use(blockstate, world, pos, entity, hand, hit);
|
super.use(blockstate, world, pos, entity, hand, hit);
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
package net.mcreator.nimsrandombullshit.block.entity;
|
package net.mcreator.nimsrandombullshit.block.entity;
|
||||||
|
|
||||||
import net.minecraftforge.items.wrapper.SidedInvWrapper;
|
import net.minecraftforge.items.wrapper.SidedInvWrapper;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
package net.mcreator.nimsrandombullshit.block.entity;
|
package net.mcreator.nimsrandombullshit.block.entity;
|
||||||
|
|
||||||
import net.minecraftforge.items.wrapper.SidedInvWrapper;
|
import net.minecraftforge.items.wrapper.SidedInvWrapper;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
package net.mcreator.nimsrandombullshit.client.gui;
|
package net.mcreator.nimsrandombullshit.client.gui;
|
||||||
|
|
||||||
import net.minecraft.world.level.Level;
|
import net.minecraft.world.level.Level;
|
||||||
@@ -6,12 +7,9 @@ import net.minecraft.world.entity.player.Inventory;
|
|||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen;
|
import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen;
|
||||||
import net.minecraft.client.gui.components.Button;
|
|
||||||
import net.minecraft.client.gui.GuiGraphics;
|
import net.minecraft.client.gui.GuiGraphics;
|
||||||
|
|
||||||
import net.mcreator.nimsrandombullshit.world.inventory.BedrockifierGUIMenu;
|
import net.mcreator.nimsrandombullshit.world.inventory.BedrockifierGUIMenu;
|
||||||
import net.mcreator.nimsrandombullshit.network.BedrockifierGUIButtonMessage;
|
|
||||||
import net.mcreator.nimsrandombullshit.NimsRandomBullshitMod;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
@@ -22,7 +20,6 @@ public class BedrockifierGUIScreen extends AbstractContainerScreen<BedrockifierG
|
|||||||
private final Level world;
|
private final Level world;
|
||||||
private final int x, y, z;
|
private final int x, y, z;
|
||||||
private final Player entity;
|
private final Player entity;
|
||||||
Button button_empty;
|
|
||||||
|
|
||||||
public BedrockifierGUIScreen(BedrockifierGUIMenu container, Inventory inventory, Component text) {
|
public BedrockifierGUIScreen(BedrockifierGUIMenu container, Inventory inventory, Component text) {
|
||||||
super(container, inventory, text);
|
super(container, inventory, text);
|
||||||
@@ -53,6 +50,8 @@ public class BedrockifierGUIScreen extends AbstractContainerScreen<BedrockifierG
|
|||||||
|
|
||||||
guiGraphics.blit(new ResourceLocation("nims_random_bullshit:textures/screens/plus_sign.png"), this.leftPos + 42, this.topPos + 34, 0, 0, 16, 16, 16, 16);
|
guiGraphics.blit(new ResourceLocation("nims_random_bullshit:textures/screens/plus_sign.png"), this.leftPos + 42, this.topPos + 34, 0, 0, 16, 16, 16, 16);
|
||||||
|
|
||||||
|
guiGraphics.blit(new ResourceLocation("nims_random_bullshit:textures/screens/right_arrow_sign.png"), this.leftPos + 96, this.topPos + 34, 0, 0, 32, 16, 32, 16);
|
||||||
|
|
||||||
RenderSystem.disableBlend();
|
RenderSystem.disableBlend();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,13 +72,5 @@ public class BedrockifierGUIScreen extends AbstractContainerScreen<BedrockifierG
|
|||||||
@Override
|
@Override
|
||||||
public void init() {
|
public void init() {
|
||||||
super.init();
|
super.init();
|
||||||
button_empty = Button.builder(Component.translatable("gui.nims_random_bullshit.bedrockifier_gui.button_empty"), e -> {
|
|
||||||
if (true) {
|
|
||||||
NimsRandomBullshitMod.PACKET_HANDLER.sendToServer(new BedrockifierGUIButtonMessage(0, x, y, z));
|
|
||||||
BedrockifierGUIButtonMessage.handleButtonAction(entity, 0, x, y, z);
|
|
||||||
}
|
|
||||||
}).bounds(this.leftPos + 96, this.topPos + 34, 35, 20).build();
|
|
||||||
guistate.put("button:button_empty", button_empty);
|
|
||||||
this.addRenderableWidget(button_empty);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
package net.mcreator.nimsrandombullshit.client.gui;
|
package net.mcreator.nimsrandombullshit.client.gui;
|
||||||
|
|
||||||
import net.minecraft.world.level.Level;
|
import net.minecraft.world.level.Level;
|
||||||
@@ -6,13 +7,10 @@ import net.minecraft.world.entity.player.Inventory;
|
|||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen;
|
import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen;
|
||||||
import net.minecraft.client.gui.components.Button;
|
|
||||||
import net.minecraft.client.gui.GuiGraphics;
|
import net.minecraft.client.gui.GuiGraphics;
|
||||||
|
|
||||||
import net.mcreator.nimsrandombullshit.world.inventory.OreMinerGUIMenu;
|
import net.mcreator.nimsrandombullshit.world.inventory.OreMinerGUIMenu;
|
||||||
import net.mcreator.nimsrandombullshit.procedures.OreMinerGUISlot0ImageDisplayConditionProcedure;
|
import net.mcreator.nimsrandombullshit.procedures.OreMinerGUISlot0ImageDisplayConditionProcedure;
|
||||||
import net.mcreator.nimsrandombullshit.network.OreMinerGUIButtonMessage;
|
|
||||||
import net.mcreator.nimsrandombullshit.NimsRandomBullshitMod;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
@@ -23,7 +21,6 @@ public class OreMinerGUIScreen extends AbstractContainerScreen<OreMinerGUIMenu>
|
|||||||
private final Level world;
|
private final Level world;
|
||||||
private final int x, y, z;
|
private final int x, y, z;
|
||||||
private final Player entity;
|
private final Player entity;
|
||||||
Button button_mine;
|
|
||||||
|
|
||||||
public OreMinerGUIScreen(OreMinerGUIMenu container, Inventory inventory, Component text) {
|
public OreMinerGUIScreen(OreMinerGUIMenu container, Inventory inventory, Component text) {
|
||||||
super(container, inventory, text);
|
super(container, inventory, text);
|
||||||
@@ -73,13 +70,5 @@ public class OreMinerGUIScreen extends AbstractContainerScreen<OreMinerGUIMenu>
|
|||||||
@Override
|
@Override
|
||||||
public void init() {
|
public void init() {
|
||||||
super.init();
|
super.init();
|
||||||
button_mine = Button.builder(Component.translatable("gui.nims_random_bullshit.ore_miner_gui.button_mine"), e -> {
|
|
||||||
if (true) {
|
|
||||||
NimsRandomBullshitMod.PACKET_HANDLER.sendToServer(new OreMinerGUIButtonMessage(0, x, y, z));
|
|
||||||
OreMinerGUIButtonMessage.handleButtonAction(entity, 0, x, y, z);
|
|
||||||
}
|
|
||||||
}).bounds(this.leftPos + 15, this.topPos + 43, 46, 20).build();
|
|
||||||
guistate.put("button:button_mine", button_mine);
|
|
||||||
this.addRenderableWidget(button_mine);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
package net.mcreator.nimsrandombullshit.client.gui;
|
package net.mcreator.nimsrandombullshit.client.gui;
|
||||||
|
|
||||||
import net.minecraft.world.level.Level;
|
import net.minecraft.world.level.Level;
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ import net.mcreator.nimsrandombullshit.item.BedrockUpgradeTemplateItem;
|
|||||||
import net.mcreator.nimsrandombullshit.item.BedrockSwordItem;
|
import net.mcreator.nimsrandombullshit.item.BedrockSwordItem;
|
||||||
import net.mcreator.nimsrandombullshit.item.BedrockShardItem;
|
import net.mcreator.nimsrandombullshit.item.BedrockShardItem;
|
||||||
import net.mcreator.nimsrandombullshit.item.BedrockPickaxeItem;
|
import net.mcreator.nimsrandombullshit.item.BedrockPickaxeItem;
|
||||||
|
import net.mcreator.nimsrandombullshit.item.BedrockEaterItem;
|
||||||
import net.mcreator.nimsrandombullshit.item.BeanItem;
|
import net.mcreator.nimsrandombullshit.item.BeanItem;
|
||||||
import net.mcreator.nimsrandombullshit.NimsRandomBullshitMod;
|
import net.mcreator.nimsrandombullshit.NimsRandomBullshitMod;
|
||||||
|
|
||||||
@@ -103,6 +104,7 @@ public class NimsRandomBullshitModItems {
|
|||||||
public static final RegistryObject<Item> ORICHALCUM_ARMOR_LEGGINGS = REGISTRY.register("orichalcum_armor_leggings", () -> new OrichalcumArmorItem.Leggings());
|
public static final RegistryObject<Item> ORICHALCUM_ARMOR_LEGGINGS = REGISTRY.register("orichalcum_armor_leggings", () -> new OrichalcumArmorItem.Leggings());
|
||||||
public static final RegistryObject<Item> ORICHALCUM_ARMOR_BOOTS = REGISTRY.register("orichalcum_armor_boots", () -> new OrichalcumArmorItem.Boots());
|
public static final RegistryObject<Item> ORICHALCUM_ARMOR_BOOTS = REGISTRY.register("orichalcum_armor_boots", () -> new OrichalcumArmorItem.Boots());
|
||||||
public static final RegistryObject<Item> BEDROCK_SHARD = REGISTRY.register("bedrock_shard", () -> new BedrockShardItem());
|
public static final RegistryObject<Item> BEDROCK_SHARD = REGISTRY.register("bedrock_shard", () -> new BedrockShardItem());
|
||||||
|
public static final RegistryObject<Item> BEDROCK_EATER = REGISTRY.register("bedrock_eater", () -> new BedrockEaterItem());
|
||||||
|
|
||||||
// Start of user code block custom items
|
// Start of user code block custom items
|
||||||
// End of user code block custom items
|
// End of user code block custom items
|
||||||
|
|||||||
@@ -7,18 +7,82 @@ package net.mcreator.nimsrandombullshit.init;
|
|||||||
import net.minecraftforge.registries.RegistryObject;
|
import net.minecraftforge.registries.RegistryObject;
|
||||||
import net.minecraftforge.registries.ForgeRegistries;
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
import net.minecraftforge.registries.DeferredRegister;
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
|
import net.minecraftforge.network.PacketDistributor;
|
||||||
|
import net.minecraftforge.network.NetworkEvent;
|
||||||
|
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
|
||||||
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
import net.minecraftforge.common.extensions.IForgeMenuType;
|
import net.minecraftforge.common.extensions.IForgeMenuType;
|
||||||
|
|
||||||
import net.minecraft.world.inventory.MenuType;
|
import net.minecraft.world.inventory.MenuType;
|
||||||
|
import net.minecraft.server.level.ServerPlayer;
|
||||||
|
import net.minecraft.network.chat.Component;
|
||||||
|
import net.minecraft.network.FriendlyByteBuf;
|
||||||
|
|
||||||
import net.mcreator.nimsrandombullshit.world.inventory.ShitGUIMenu;
|
import net.mcreator.nimsrandombullshit.world.inventory.ShitGUIMenu;
|
||||||
import net.mcreator.nimsrandombullshit.world.inventory.OreMinerGUIMenu;
|
import net.mcreator.nimsrandombullshit.world.inventory.OreMinerGUIMenu;
|
||||||
import net.mcreator.nimsrandombullshit.world.inventory.BedrockifierGUIMenu;
|
import net.mcreator.nimsrandombullshit.world.inventory.BedrockifierGUIMenu;
|
||||||
import net.mcreator.nimsrandombullshit.NimsRandomBullshitMod;
|
import net.mcreator.nimsrandombullshit.NimsRandomBullshitMod;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
|
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
|
||||||
public class NimsRandomBullshitModMenus {
|
public class NimsRandomBullshitModMenus {
|
||||||
public static final DeferredRegister<MenuType<?>> REGISTRY = DeferredRegister.create(ForgeRegistries.MENU_TYPES, NimsRandomBullshitMod.MODID);
|
public static final DeferredRegister<MenuType<?>> REGISTRY = DeferredRegister.create(ForgeRegistries.MENU_TYPES, NimsRandomBullshitMod.MODID);
|
||||||
public static final RegistryObject<MenuType<ShitGUIMenu>> SHIT_GUI = REGISTRY.register("shit_gui", () -> IForgeMenuType.create(ShitGUIMenu::new));
|
public static final RegistryObject<MenuType<ShitGUIMenu>> SHIT_GUI = REGISTRY.register("shit_gui", () -> IForgeMenuType.create(ShitGUIMenu::new));
|
||||||
public static final RegistryObject<MenuType<OreMinerGUIMenu>> ORE_MINER_GUI = REGISTRY.register("ore_miner_gui", () -> IForgeMenuType.create(OreMinerGUIMenu::new));
|
public static final RegistryObject<MenuType<OreMinerGUIMenu>> ORE_MINER_GUI = REGISTRY.register("ore_miner_gui", () -> IForgeMenuType.create(OreMinerGUIMenu::new));
|
||||||
public static final RegistryObject<MenuType<BedrockifierGUIMenu>> BEDROCKIFIER_GUI = REGISTRY.register("bedrockifier_gui", () -> IForgeMenuType.create(BedrockifierGUIMenu::new));
|
public static final RegistryObject<MenuType<BedrockifierGUIMenu>> BEDROCKIFIER_GUI = REGISTRY.register("bedrockifier_gui", () -> IForgeMenuType.create(BedrockifierGUIMenu::new));
|
||||||
|
|
||||||
|
public static void setText(String boxname, String value, @Nullable ServerPlayer player) {
|
||||||
|
if (player != null) {
|
||||||
|
NimsRandomBullshitMod.PACKET_HANDLER.send(PacketDistributor.PLAYER.with(() -> player), new GuiSyncMessage(boxname, value));
|
||||||
|
} else {
|
||||||
|
NimsRandomBullshitMod.PACKET_HANDLER.send(PacketDistributor.ALL.noArg(), new GuiSyncMessage(boxname, value));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class GuiSyncMessage {
|
||||||
|
private final String textboxid;
|
||||||
|
private final String data;
|
||||||
|
|
||||||
|
public GuiSyncMessage(FriendlyByteBuf buffer) {
|
||||||
|
this.textboxid = buffer.readComponent().getString();
|
||||||
|
this.data = buffer.readComponent().getString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public GuiSyncMessage(String textboxid, String data) {
|
||||||
|
this.textboxid = textboxid;
|
||||||
|
this.data = data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void buffer(GuiSyncMessage message, FriendlyByteBuf buffer) {
|
||||||
|
buffer.writeComponent(Component.literal(message.textboxid));
|
||||||
|
buffer.writeComponent(Component.literal(message.data));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void handleData(GuiSyncMessage message, Supplier<NetworkEvent.Context> contextSupplier) {
|
||||||
|
NetworkEvent.Context context = contextSupplier.get();
|
||||||
|
context.enqueueWork(() -> {
|
||||||
|
if (!context.getDirection().getReceptionSide().isServer()) {
|
||||||
|
NimsRandomBullshitModScreens.handleTextBoxMessage(message);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
context.setPacketHandled(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
String editbox() {
|
||||||
|
return this.textboxid;
|
||||||
|
}
|
||||||
|
|
||||||
|
String value() {
|
||||||
|
return this.data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SubscribeEvent
|
||||||
|
public static void init(FMLCommonSetupEvent event) {
|
||||||
|
NimsRandomBullshitMod.addNetworkMessage(GuiSyncMessage.class, GuiSyncMessage::buffer, GuiSyncMessage::new, GuiSyncMessage::handleData);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,12 +9,18 @@ import net.minecraftforge.fml.common.Mod;
|
|||||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
import net.minecraftforge.api.distmarker.Dist;
|
import net.minecraftforge.api.distmarker.Dist;
|
||||||
|
|
||||||
|
import net.minecraft.client.gui.screens.Screen;
|
||||||
import net.minecraft.client.gui.screens.MenuScreens;
|
import net.minecraft.client.gui.screens.MenuScreens;
|
||||||
|
import net.minecraft.client.gui.components.EditBox;
|
||||||
|
import net.minecraft.client.Minecraft;
|
||||||
|
|
||||||
|
import net.mcreator.nimsrandombullshit.init.NimsRandomBullshitModMenus.GuiSyncMessage;
|
||||||
import net.mcreator.nimsrandombullshit.client.gui.ShitGUIScreen;
|
import net.mcreator.nimsrandombullshit.client.gui.ShitGUIScreen;
|
||||||
import net.mcreator.nimsrandombullshit.client.gui.OreMinerGUIScreen;
|
import net.mcreator.nimsrandombullshit.client.gui.OreMinerGUIScreen;
|
||||||
import net.mcreator.nimsrandombullshit.client.gui.BedrockifierGUIScreen;
|
import net.mcreator.nimsrandombullshit.client.gui.BedrockifierGUIScreen;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
|
||||||
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
|
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
|
||||||
public class NimsRandomBullshitModScreens {
|
public class NimsRandomBullshitModScreens {
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
@@ -25,4 +31,21 @@ public class NimsRandomBullshitModScreens {
|
|||||||
MenuScreens.register(NimsRandomBullshitModMenus.BEDROCKIFIER_GUI.get(), BedrockifierGUIScreen::new);
|
MenuScreens.register(NimsRandomBullshitModMenus.BEDROCKIFIER_GUI.get(), BedrockifierGUIScreen::new);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void handleTextBoxMessage(GuiSyncMessage message) {
|
||||||
|
String editbox = message.editbox();
|
||||||
|
String value = message.value();
|
||||||
|
Screen currentScreen = Minecraft.getInstance().screen;
|
||||||
|
if (currentScreen instanceof WidgetScreen sc) {
|
||||||
|
HashMap<String, Object> widgets = sc.getWidgets();
|
||||||
|
Object obj = widgets.get("text:" + editbox);
|
||||||
|
if (obj instanceof EditBox box) {
|
||||||
|
box.setValue(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface WidgetScreen {
|
||||||
|
HashMap<String, Object> getWidgets();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ public class NimsRandomBullshitModTabs {
|
|||||||
tabData.accept(NimsRandomBullshitModItems.ORICHALCUM_AXE.get());
|
tabData.accept(NimsRandomBullshitModItems.ORICHALCUM_AXE.get());
|
||||||
tabData.accept(NimsRandomBullshitModItems.ORICHALCUM_SHOVEL.get());
|
tabData.accept(NimsRandomBullshitModItems.ORICHALCUM_SHOVEL.get());
|
||||||
tabData.accept(NimsRandomBullshitModItems.ORICHALCUM_HOE.get());
|
tabData.accept(NimsRandomBullshitModItems.ORICHALCUM_HOE.get());
|
||||||
|
tabData.accept(NimsRandomBullshitModItems.BEDROCK_EATER.get());
|
||||||
} else if (tabData.getTabKey() == CreativeModeTabs.INGREDIENTS) {
|
} else if (tabData.getTabKey() == CreativeModeTabs.INGREDIENTS) {
|
||||||
tabData.accept(NimsRandomBullshitModItems.NETHERRACKITE.get());
|
tabData.accept(NimsRandomBullshitModItems.NETHERRACKITE.get());
|
||||||
tabData.accept(NimsRandomBullshitModItems.SAND_DUST.get());
|
tabData.accept(NimsRandomBullshitModItems.SAND_DUST.get());
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
|
||||||
|
package net.mcreator.nimsrandombullshit.item;
|
||||||
|
|
||||||
|
import net.minecraft.world.item.context.UseOnContext;
|
||||||
|
import net.minecraft.world.item.UseAnim;
|
||||||
|
import net.minecraft.world.item.Rarity;
|
||||||
|
import net.minecraft.world.item.ItemStack;
|
||||||
|
import net.minecraft.world.item.Item;
|
||||||
|
import net.minecraft.world.InteractionResult;
|
||||||
|
|
||||||
|
import net.mcreator.nimsrandombullshit.procedures.BedrockEaterRightClickProcedure;
|
||||||
|
|
||||||
|
public class BedrockEaterItem extends Item {
|
||||||
|
public BedrockEaterItem() {
|
||||||
|
super(new Item.Properties().stacksTo(1).fireResistant().rarity(Rarity.EPIC));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public UseAnim getUseAnimation(ItemStack itemstack) {
|
||||||
|
return UseAnim.BLOCK;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public InteractionResult useOn(UseOnContext context) {
|
||||||
|
super.useOn(context);
|
||||||
|
BedrockEaterRightClickProcedure.execute(context.getLevel(), context.getClickedPos().getX(), context.getClickedPos().getY(), context.getClickedPos().getZ(), context.getPlayer(), context.getItemInHand());
|
||||||
|
return InteractionResult.SUCCESS;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -31,7 +31,7 @@ public class BedrockPickaxeItem extends PickaxeItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getEnchantmentValue() {
|
public int getEnchantmentValue() {
|
||||||
return 19;
|
return 22;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Ingredient getRepairIngredient() {
|
public Ingredient getRepairIngredient() {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ public class BedrockSwordItem extends SwordItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getEnchantmentValue() {
|
public int getEnchantmentValue() {
|
||||||
return 19;
|
return 22;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Ingredient getRepairIngredient() {
|
public Ingredient getRepairIngredient() {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import net.mcreator.nimsrandombullshit.procedures.BlockEaterRightclickedOnBlockP
|
|||||||
|
|
||||||
public class BlockEaterItem extends Item {
|
public class BlockEaterItem extends Item {
|
||||||
public BlockEaterItem() {
|
public BlockEaterItem() {
|
||||||
super(new Item.Properties().stacksTo(1).rarity(Rarity.EPIC));
|
super(new Item.Properties().stacksTo(1).fireResistant().rarity(Rarity.RARE));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -1,75 +0,0 @@
|
|||||||
|
|
||||||
package net.mcreator.nimsrandombullshit.network;
|
|
||||||
|
|
||||||
import net.minecraftforge.network.NetworkEvent;
|
|
||||||
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
|
|
||||||
import net.minecraftforge.fml.common.Mod;
|
|
||||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
|
||||||
|
|
||||||
import net.minecraft.world.level.Level;
|
|
||||||
import net.minecraft.world.entity.player.Player;
|
|
||||||
import net.minecraft.network.FriendlyByteBuf;
|
|
||||||
import net.minecraft.core.BlockPos;
|
|
||||||
|
|
||||||
import net.mcreator.nimsrandombullshit.world.inventory.BedrockifierGUIMenu;
|
|
||||||
import net.mcreator.nimsrandombullshit.procedures.BedrockifierButtonPressLogicProcedure;
|
|
||||||
import net.mcreator.nimsrandombullshit.NimsRandomBullshitMod;
|
|
||||||
|
|
||||||
import java.util.function.Supplier;
|
|
||||||
import java.util.HashMap;
|
|
||||||
|
|
||||||
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
|
|
||||||
public class BedrockifierGUIButtonMessage {
|
|
||||||
private final int buttonID, x, y, z;
|
|
||||||
|
|
||||||
public BedrockifierGUIButtonMessage(FriendlyByteBuf buffer) {
|
|
||||||
this.buttonID = buffer.readInt();
|
|
||||||
this.x = buffer.readInt();
|
|
||||||
this.y = buffer.readInt();
|
|
||||||
this.z = buffer.readInt();
|
|
||||||
}
|
|
||||||
|
|
||||||
public BedrockifierGUIButtonMessage(int buttonID, int x, int y, int z) {
|
|
||||||
this.buttonID = buttonID;
|
|
||||||
this.x = x;
|
|
||||||
this.y = y;
|
|
||||||
this.z = z;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void buffer(BedrockifierGUIButtonMessage message, FriendlyByteBuf buffer) {
|
|
||||||
buffer.writeInt(message.buttonID);
|
|
||||||
buffer.writeInt(message.x);
|
|
||||||
buffer.writeInt(message.y);
|
|
||||||
buffer.writeInt(message.z);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void handler(BedrockifierGUIButtonMessage message, Supplier<NetworkEvent.Context> contextSupplier) {
|
|
||||||
NetworkEvent.Context context = contextSupplier.get();
|
|
||||||
context.enqueueWork(() -> {
|
|
||||||
Player entity = context.getSender();
|
|
||||||
int buttonID = message.buttonID;
|
|
||||||
int x = message.x;
|
|
||||||
int y = message.y;
|
|
||||||
int z = message.z;
|
|
||||||
handleButtonAction(entity, buttonID, x, y, z);
|
|
||||||
});
|
|
||||||
context.setPacketHandled(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void handleButtonAction(Player entity, int buttonID, int x, int y, int z) {
|
|
||||||
Level world = entity.level();
|
|
||||||
HashMap guistate = BedrockifierGUIMenu.guistate;
|
|
||||||
// security measure to prevent arbitrary chunk generation
|
|
||||||
if (!world.hasChunkAt(new BlockPos(x, y, z)))
|
|
||||||
return;
|
|
||||||
if (buttonID == 0) {
|
|
||||||
|
|
||||||
BedrockifierButtonPressLogicProcedure.execute(world, x, y, z, entity);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@SubscribeEvent
|
|
||||||
public static void registerMessage(FMLCommonSetupEvent event) {
|
|
||||||
NimsRandomBullshitMod.addNetworkMessage(BedrockifierGUIButtonMessage.class, BedrockifierGUIButtonMessage::buffer, BedrockifierGUIButtonMessage::new, BedrockifierGUIButtonMessage::handler);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
|
|
||||||
package net.mcreator.nimsrandombullshit.network;
|
|
||||||
|
|
||||||
import net.minecraftforge.network.NetworkEvent;
|
|
||||||
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
|
|
||||||
import net.minecraftforge.fml.common.Mod;
|
|
||||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
|
||||||
|
|
||||||
import net.minecraft.world.level.Level;
|
|
||||||
import net.minecraft.world.entity.player.Player;
|
|
||||||
import net.minecraft.network.FriendlyByteBuf;
|
|
||||||
import net.minecraft.core.BlockPos;
|
|
||||||
|
|
||||||
import net.mcreator.nimsrandombullshit.world.inventory.OreMinerGUIMenu;
|
|
||||||
import net.mcreator.nimsrandombullshit.procedures.OreMinerMineButtonPressedProcedure;
|
|
||||||
import net.mcreator.nimsrandombullshit.NimsRandomBullshitMod;
|
|
||||||
|
|
||||||
import java.util.function.Supplier;
|
|
||||||
import java.util.HashMap;
|
|
||||||
|
|
||||||
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
|
|
||||||
public class OreMinerGUIButtonMessage {
|
|
||||||
private final int buttonID, x, y, z;
|
|
||||||
|
|
||||||
public OreMinerGUIButtonMessage(FriendlyByteBuf buffer) {
|
|
||||||
this.buttonID = buffer.readInt();
|
|
||||||
this.x = buffer.readInt();
|
|
||||||
this.y = buffer.readInt();
|
|
||||||
this.z = buffer.readInt();
|
|
||||||
}
|
|
||||||
|
|
||||||
public OreMinerGUIButtonMessage(int buttonID, int x, int y, int z) {
|
|
||||||
this.buttonID = buttonID;
|
|
||||||
this.x = x;
|
|
||||||
this.y = y;
|
|
||||||
this.z = z;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void buffer(OreMinerGUIButtonMessage message, FriendlyByteBuf buffer) {
|
|
||||||
buffer.writeInt(message.buttonID);
|
|
||||||
buffer.writeInt(message.x);
|
|
||||||
buffer.writeInt(message.y);
|
|
||||||
buffer.writeInt(message.z);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void handler(OreMinerGUIButtonMessage message, Supplier<NetworkEvent.Context> contextSupplier) {
|
|
||||||
NetworkEvent.Context context = contextSupplier.get();
|
|
||||||
context.enqueueWork(() -> {
|
|
||||||
Player entity = context.getSender();
|
|
||||||
int buttonID = message.buttonID;
|
|
||||||
int x = message.x;
|
|
||||||
int y = message.y;
|
|
||||||
int z = message.z;
|
|
||||||
handleButtonAction(entity, buttonID, x, y, z);
|
|
||||||
});
|
|
||||||
context.setPacketHandled(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void handleButtonAction(Player entity, int buttonID, int x, int y, int z) {
|
|
||||||
Level world = entity.level();
|
|
||||||
HashMap guistate = OreMinerGUIMenu.guistate;
|
|
||||||
// security measure to prevent arbitrary chunk generation
|
|
||||||
if (!world.hasChunkAt(new BlockPos(x, y, z)))
|
|
||||||
return;
|
|
||||||
if (buttonID == 0) {
|
|
||||||
|
|
||||||
OreMinerMineButtonPressedProcedure.execute(world, x, y, z, entity);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@SubscribeEvent
|
|
||||||
public static void registerMessage(FMLCommonSetupEvent event) {
|
|
||||||
NimsRandomBullshitMod.addNetworkMessage(OreMinerGUIButtonMessage.class, OreMinerGUIButtonMessage::buffer, OreMinerGUIButtonMessage::new, OreMinerGUIButtonMessage::handler);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
package net.mcreator.nimsrandombullshit.procedures;
|
||||||
|
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
||||||
|
import net.minecraft.world.level.block.Blocks;
|
||||||
|
import net.minecraft.world.level.LevelAccessor;
|
||||||
|
import net.minecraft.world.level.Level;
|
||||||
|
import net.minecraft.world.item.ItemStack;
|
||||||
|
import net.minecraft.world.entity.player.Player;
|
||||||
|
import net.minecraft.world.entity.Entity;
|
||||||
|
import net.minecraft.sounds.SoundSource;
|
||||||
|
import net.minecraft.server.level.ServerPlayer;
|
||||||
|
import net.minecraft.server.level.ServerLevel;
|
||||||
|
import net.minecraft.resources.ResourceLocation;
|
||||||
|
import net.minecraft.core.particles.ParticleTypes;
|
||||||
|
import net.minecraft.core.BlockPos;
|
||||||
|
import net.minecraft.advancements.AdvancementProgress;
|
||||||
|
import net.minecraft.advancements.Advancement;
|
||||||
|
|
||||||
|
public class BedrockEaterRightClickProcedure {
|
||||||
|
public static void execute(LevelAccessor world, double x, double y, double z, Entity entity, ItemStack itemstack) {
|
||||||
|
if (entity == null)
|
||||||
|
return;
|
||||||
|
if ((world.getBlockState(BlockPos.containing(x, y, z))).getBlock() == Blocks.BEDROCK || world.getBlockState(BlockPos.containing(x, y, z)).getDestroySpeed(world, BlockPos.containing(x, y, z)) != -1) {
|
||||||
|
world.setBlock(BlockPos.containing(x, y, z), Blocks.AIR.defaultBlockState(), 3);
|
||||||
|
if (entity instanceof Player _player)
|
||||||
|
_player.getFoodData().setFoodLevel((int) ((entity instanceof Player _plr ? _plr.getFoodData().getFoodLevel() : 0) + 6));
|
||||||
|
if ((entity instanceof Player _plr ? _plr.getFoodData().getFoodLevel() : 0) >= 20) {
|
||||||
|
if (entity instanceof Player _player)
|
||||||
|
_player.getFoodData().setSaturation((float) ((entity instanceof Player _plr ? _plr.getFoodData().getSaturationLevel() : 0) + 3));
|
||||||
|
}
|
||||||
|
if (world instanceof Level _level) {
|
||||||
|
if (!_level.isClientSide()) {
|
||||||
|
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("entity.generic.eat")), SoundSource.PLAYERS, (float) 0.5, (float) 0.84);
|
||||||
|
} else {
|
||||||
|
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("entity.generic.eat")), SoundSource.PLAYERS, (float) 0.5, (float) 0.84, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (world instanceof ServerLevel _level)
|
||||||
|
_level.sendParticles(ParticleTypes.END_ROD, x, y, z, 4, 1, 1, 1, 0.4);
|
||||||
|
if (entity instanceof Player _player)
|
||||||
|
_player.getCooldowns().addCooldown(itemstack.getItem(), 300);
|
||||||
|
if (!(entity instanceof ServerPlayer _plr13 && _plr13.level() instanceof ServerLevel
|
||||||
|
&& _plr13.getAdvancements().getOrStartProgress(_plr13.server.getAdvancements().getAdvancement(new ResourceLocation("nims_random_bullshit:block_eater_advancement"))).isDone())) {
|
||||||
|
if (entity instanceof ServerPlayer _player) {
|
||||||
|
Advancement _adv = _player.server.getAdvancements().getAdvancement(new ResourceLocation("nims_random_bullshit:block_eater_advancement"));
|
||||||
|
AdvancementProgress _ap = _player.getAdvancements().getOrStartProgress(_adv);
|
||||||
|
if (!_ap.isDone()) {
|
||||||
|
for (String criteria : _ap.getRemainingCriteria())
|
||||||
|
_player.getAdvancements().award(_adv, criteria);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
package net.mcreator.nimsrandombullshit.procedures;
|
|
||||||
|
|
||||||
import net.minecraftforge.registries.ForgeRegistries;
|
|
||||||
|
|
||||||
import net.minecraft.world.level.block.Blocks;
|
|
||||||
import net.minecraft.world.level.LevelAccessor;
|
|
||||||
import net.minecraft.world.level.Level;
|
|
||||||
import net.minecraft.world.item.ItemStack;
|
|
||||||
import net.minecraft.world.inventory.Slot;
|
|
||||||
import net.minecraft.world.entity.player.Player;
|
|
||||||
import net.minecraft.world.entity.Entity;
|
|
||||||
import net.minecraft.sounds.SoundSource;
|
|
||||||
import net.minecraft.resources.ResourceLocation;
|
|
||||||
import net.minecraft.core.BlockPos;
|
|
||||||
|
|
||||||
import java.util.function.Supplier;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
public class BedrockifierButtonPressLogicProcedure {
|
|
||||||
public static void execute(LevelAccessor world, double x, double y, double z, Entity entity) {
|
|
||||||
if (entity == null)
|
|
||||||
return;
|
|
||||||
if (!world.isClientSide()) {
|
|
||||||
if (new Object() {
|
|
||||||
public int getAmount(int sltid) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack stack = ((Slot) _slots.get(sltid)).getItem();
|
|
||||||
if (stack != null)
|
|
||||||
return stack.getCount();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}.getAmount(0) > 0) {
|
|
||||||
if ((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY).getOrCreateTag()
|
|
||||||
.getBoolean("Unbreakable") == false
|
|
||||||
&& (entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(1)).getItem() : ItemStack.EMPTY).getItem() == Blocks.BEDROCK.asItem()) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack _setstack = (entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY).copy();
|
|
||||||
_setstack.setCount((int) (new Object() {
|
|
||||||
public int getAmount(int sltid) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack stack = ((Slot) _slots.get(sltid)).getItem();
|
|
||||||
if (stack != null)
|
|
||||||
return stack.getCount();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}.getAmount(2) + 1));
|
|
||||||
((Slot) _slots.get(2)).set(_setstack);
|
|
||||||
_player.containerMenu.broadcastChanges();
|
|
||||||
}
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack _setstack = (entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY).copy();
|
|
||||||
_setstack.setCount((int) (new Object() {
|
|
||||||
public int getAmount(int sltid) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack stack = ((Slot) _slots.get(sltid)).getItem();
|
|
||||||
if (stack != null)
|
|
||||||
return stack.getCount();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}.getAmount(0) - 1));
|
|
||||||
((Slot) _slots.get(0)).set(_setstack);
|
|
||||||
_player.containerMenu.broadcastChanges();
|
|
||||||
}
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack _setstack = (entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(1)).getItem() : ItemStack.EMPTY).copy();
|
|
||||||
_setstack.setCount((int) (new Object() {
|
|
||||||
public int getAmount(int sltid) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack stack = ((Slot) _slots.get(sltid)).getItem();
|
|
||||||
if (stack != null)
|
|
||||||
return stack.getCount();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}.getAmount(1) - 1));
|
|
||||||
((Slot) _slots.get(1)).set(_setstack);
|
|
||||||
_player.containerMenu.broadcastChanges();
|
|
||||||
}
|
|
||||||
(entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(2)).getItem() : ItemStack.EMPTY).getOrCreateTag().putBoolean("Unbreakable",
|
|
||||||
true);
|
|
||||||
if (world instanceof Level _level) {
|
|
||||||
if (!_level.isClientSide()) {
|
|
||||||
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.smithing_table.use")), SoundSource.BLOCKS, (float) 0.8, (float) 0.8);
|
|
||||||
} else {
|
|
||||||
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.smithing_table.use")), SoundSource.BLOCKS, (float) 0.8, (float) 0.8, false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,146 @@
|
|||||||
|
package net.mcreator.nimsrandombullshit.procedures;
|
||||||
|
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
import net.minecraftforge.items.IItemHandlerModifiable;
|
||||||
|
import net.minecraftforge.common.capabilities.ForgeCapabilities;
|
||||||
|
|
||||||
|
import net.minecraft.world.level.block.entity.BlockEntity;
|
||||||
|
import net.minecraft.world.level.block.Blocks;
|
||||||
|
import net.minecraft.world.level.LevelAccessor;
|
||||||
|
import net.minecraft.world.level.Level;
|
||||||
|
import net.minecraft.world.item.ItemStack;
|
||||||
|
import net.minecraft.sounds.SoundSource;
|
||||||
|
import net.minecraft.resources.ResourceLocation;
|
||||||
|
import net.minecraft.core.BlockPos;
|
||||||
|
|
||||||
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
|
public class BedrockifierLogicProcedure {
|
||||||
|
public static void execute(LevelAccessor world, double x, double y, double z) {
|
||||||
|
ItemStack ResultItem = ItemStack.EMPTY;
|
||||||
|
if (!world.isClientSide()) {
|
||||||
|
if (new Object() {
|
||||||
|
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicInteger _retval = new AtomicInteger(0);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getAmount(world, BlockPos.containing(x, y, z), 0) > 0) {
|
||||||
|
if ((new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getOrCreateTag().getBoolean("Unbreakable") == false && (new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 1)).getItem() == Blocks.BEDROCK.asItem()) {
|
||||||
|
ResultItem = (new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).copy();
|
||||||
|
{
|
||||||
|
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
|
||||||
|
if (_ent != null) {
|
||||||
|
final int _slotid = 0;
|
||||||
|
final ItemStack _setstack = (new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).copy();
|
||||||
|
_setstack.setCount((int) (new Object() {
|
||||||
|
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicInteger _retval = new AtomicInteger(0);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getAmount(world, BlockPos.containing(x, y, z), 0) - 1));
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
|
||||||
|
if (capability instanceof IItemHandlerModifiable)
|
||||||
|
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
|
||||||
|
if (_ent != null) {
|
||||||
|
final int _slotid = 1;
|
||||||
|
final ItemStack _setstack = (new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 1)).copy();
|
||||||
|
_setstack.setCount((int) (new Object() {
|
||||||
|
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicInteger _retval = new AtomicInteger(0);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getAmount(world, BlockPos.containing(x, y, z), 1) - 1));
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
|
||||||
|
if (capability instanceof IItemHandlerModifiable)
|
||||||
|
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ResultItem.getOrCreateTag().putBoolean("Unbreakable", true);
|
||||||
|
{
|
||||||
|
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
|
||||||
|
if (_ent != null) {
|
||||||
|
final int _slotid = 2;
|
||||||
|
final ItemStack _setstack = ResultItem.copy();
|
||||||
|
_setstack.setCount((int) (new Object() {
|
||||||
|
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicInteger _retval = new AtomicInteger(0);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getAmount(world, BlockPos.containing(x, y, z), 2) + 1));
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
|
||||||
|
if (capability instanceof IItemHandlerModifiable)
|
||||||
|
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (world instanceof Level _level) {
|
||||||
|
if (!_level.isClientSide()) {
|
||||||
|
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.smithing_table.use")), SoundSource.BLOCKS, (float) 0.8, (float) 0.8);
|
||||||
|
} else {
|
||||||
|
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.smithing_table.use")), SoundSource.BLOCKS, (float) 0.8, (float) 0.8, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,223 +0,0 @@
|
|||||||
package net.mcreator.nimsrandombullshit.procedures;
|
|
||||||
|
|
||||||
import net.minecraftforge.registries.ForgeRegistries;
|
|
||||||
|
|
||||||
import net.minecraft.world.level.LevelAccessor;
|
|
||||||
import net.minecraft.world.level.Level;
|
|
||||||
import net.minecraft.world.item.enchantment.Enchantments;
|
|
||||||
import net.minecraft.world.item.Items;
|
|
||||||
import net.minecraft.world.item.ItemStack;
|
|
||||||
import net.minecraft.world.inventory.Slot;
|
|
||||||
import net.minecraft.world.entity.player.Player;
|
|
||||||
import net.minecraft.world.entity.Entity;
|
|
||||||
import net.minecraft.util.RandomSource;
|
|
||||||
import net.minecraft.util.Mth;
|
|
||||||
import net.minecraft.sounds.SoundSource;
|
|
||||||
import net.minecraft.resources.ResourceLocation;
|
|
||||||
import net.minecraft.core.BlockPos;
|
|
||||||
|
|
||||||
import java.util.function.Supplier;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
public class OreMinerMineButtonPressedProcedure {
|
|
||||||
public static void execute(LevelAccessor world, double x, double y, double z, Entity entity) {
|
|
||||||
if (entity == null)
|
|
||||||
return;
|
|
||||||
double oreMinerRoll = 0;
|
|
||||||
if (!world.isClientSide()) {
|
|
||||||
if (!((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY).getItem() == ItemStack.EMPTY.getItem())
|
|
||||||
&& !(entity instanceof Player _plrCldCheck5 && _plrCldCheck5.getCooldowns()
|
|
||||||
.isOnCooldown((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY).getItem()))) {
|
|
||||||
if (world instanceof Level _level) {
|
|
||||||
if (!_level.isClientSide()) {
|
|
||||||
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.amethyst_block.break")), SoundSource.BLOCKS, 1, (float) Mth.nextDouble(RandomSource.create(), 0.75, 0.85));
|
|
||||||
} else {
|
|
||||||
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.amethyst_block.break")), SoundSource.BLOCKS, 1, (float) Mth.nextDouble(RandomSource.create(), 0.75, 0.85), false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
ItemStack _ist = (entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY);
|
|
||||||
if (_ist.hurt(15, RandomSource.create(), null)) {
|
|
||||||
_ist.shrink(1);
|
|
||||||
_ist.setDamageValue(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
oreMinerRoll = Math.random();
|
|
||||||
if (oreMinerRoll < 0.4) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack _setstack = new ItemStack(Items.COAL).copy();
|
|
||||||
_setstack.setCount((int) (new Object() {
|
|
||||||
public int getAmount(int sltid) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack stack = ((Slot) _slots.get(sltid)).getItem();
|
|
||||||
if (stack != null)
|
|
||||||
return stack.getCount();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}.getAmount(1) + Mth.nextInt(RandomSource.create(), 1, 3)
|
|
||||||
* ((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY)
|
|
||||||
.getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
|
||||||
((Slot) _slots.get(1)).set(_setstack);
|
|
||||||
_player.containerMenu.broadcastChanges();
|
|
||||||
}
|
|
||||||
if (entity instanceof Player _player)
|
|
||||||
_player.giveExperiencePoints(1);
|
|
||||||
if (entity instanceof Player _player)
|
|
||||||
_player.getCooldowns()
|
|
||||||
.addCooldown((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY).getItem(), 6);
|
|
||||||
} else if (oreMinerRoll < 0.6) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack _setstack = new ItemStack(Items.COPPER_INGOT).copy();
|
|
||||||
_setstack.setCount((int) (new Object() {
|
|
||||||
public int getAmount(int sltid) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack stack = ((Slot) _slots.get(sltid)).getItem();
|
|
||||||
if (stack != null)
|
|
||||||
return stack.getCount();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}.getAmount(2) + Mth.nextInt(RandomSource.create(), 2, 4)
|
|
||||||
* ((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY)
|
|
||||||
.getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
|
||||||
((Slot) _slots.get(2)).set(_setstack);
|
|
||||||
_player.containerMenu.broadcastChanges();
|
|
||||||
}
|
|
||||||
if (entity instanceof Player _player)
|
|
||||||
_player.getCooldowns()
|
|
||||||
.addCooldown((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY).getItem(), 8);
|
|
||||||
} else if (oreMinerRoll < 0.7) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack _setstack = new ItemStack(Items.IRON_INGOT).copy();
|
|
||||||
_setstack.setCount((int) (new Object() {
|
|
||||||
public int getAmount(int sltid) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack stack = ((Slot) _slots.get(sltid)).getItem();
|
|
||||||
if (stack != null)
|
|
||||||
return stack.getCount();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}.getAmount(3) + 1 * ((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY)
|
|
||||||
.getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
|
||||||
((Slot) _slots.get(3)).set(_setstack);
|
|
||||||
_player.containerMenu.broadcastChanges();
|
|
||||||
}
|
|
||||||
if (entity instanceof Player _player)
|
|
||||||
_player.getCooldowns()
|
|
||||||
.addCooldown((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY).getItem(), 8);
|
|
||||||
} else if (oreMinerRoll < 0.78) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack _setstack = new ItemStack(Items.GOLD_INGOT).copy();
|
|
||||||
_setstack.setCount((int) (new Object() {
|
|
||||||
public int getAmount(int sltid) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack stack = ((Slot) _slots.get(sltid)).getItem();
|
|
||||||
if (stack != null)
|
|
||||||
return stack.getCount();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}.getAmount(4) + 1 * ((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY)
|
|
||||||
.getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
|
||||||
((Slot) _slots.get(4)).set(_setstack);
|
|
||||||
_player.containerMenu.broadcastChanges();
|
|
||||||
}
|
|
||||||
if (entity instanceof Player _player)
|
|
||||||
_player.getCooldowns()
|
|
||||||
.addCooldown((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY).getItem(), 10);
|
|
||||||
} else if (oreMinerRoll < 0.81) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack _setstack = new ItemStack(Items.DIAMOND).copy();
|
|
||||||
_setstack.setCount((int) (new Object() {
|
|
||||||
public int getAmount(int sltid) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack stack = ((Slot) _slots.get(sltid)).getItem();
|
|
||||||
if (stack != null)
|
|
||||||
return stack.getCount();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}.getAmount(5) + Mth.nextInt(RandomSource.create(), 1, 2)
|
|
||||||
* ((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY)
|
|
||||||
.getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
|
||||||
((Slot) _slots.get(5)).set(_setstack);
|
|
||||||
_player.containerMenu.broadcastChanges();
|
|
||||||
}
|
|
||||||
if (entity instanceof Player _player)
|
|
||||||
_player.giveExperiencePoints(3);
|
|
||||||
if (entity instanceof Player _player)
|
|
||||||
_player.getCooldowns()
|
|
||||||
.addCooldown((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY).getItem(), 14);
|
|
||||||
} else if (oreMinerRoll < 0.84) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack _setstack = new ItemStack(Items.EMERALD).copy();
|
|
||||||
_setstack.setCount((int) (new Object() {
|
|
||||||
public int getAmount(int sltid) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack stack = ((Slot) _slots.get(sltid)).getItem();
|
|
||||||
if (stack != null)
|
|
||||||
return stack.getCount();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}.getAmount(6) + Mth.nextInt(RandomSource.create(), 1, 2)
|
|
||||||
* ((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY)
|
|
||||||
.getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
|
||||||
((Slot) _slots.get(6)).set(_setstack);
|
|
||||||
_player.containerMenu.broadcastChanges();
|
|
||||||
}
|
|
||||||
if (entity instanceof Player _player)
|
|
||||||
_player.giveExperiencePoints(3);
|
|
||||||
if (entity instanceof Player _player)
|
|
||||||
_player.getCooldowns()
|
|
||||||
.addCooldown((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY).getItem(), 14);
|
|
||||||
} else if (oreMinerRoll < 0.985) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack _setstack = new ItemStack(Items.REDSTONE).copy();
|
|
||||||
_setstack.setCount((int) (new Object() {
|
|
||||||
public int getAmount(int sltid) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack stack = ((Slot) _slots.get(sltid)).getItem();
|
|
||||||
if (stack != null)
|
|
||||||
return stack.getCount();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}.getAmount(7) + Mth.nextInt(RandomSource.create(), 3, 6)
|
|
||||||
* ((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY)
|
|
||||||
.getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
|
||||||
((Slot) _slots.get(7)).set(_setstack);
|
|
||||||
_player.containerMenu.broadcastChanges();
|
|
||||||
}
|
|
||||||
if (entity instanceof Player _player)
|
|
||||||
_player.giveExperiencePoints(5);
|
|
||||||
if (entity instanceof Player _player)
|
|
||||||
_player.getCooldowns()
|
|
||||||
.addCooldown((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY).getItem(), 9);
|
|
||||||
} else {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack _setstack = new ItemStack(Items.NETHERITE_SCRAP).copy();
|
|
||||||
_setstack.setCount((int) (new Object() {
|
|
||||||
public int getAmount(int sltid) {
|
|
||||||
if (entity instanceof Player _player && _player.containerMenu instanceof Supplier _current && _current.get() instanceof Map _slots) {
|
|
||||||
ItemStack stack = ((Slot) _slots.get(sltid)).getItem();
|
|
||||||
if (stack != null)
|
|
||||||
return stack.getCount();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}.getAmount(8) + 1 * ((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY)
|
|
||||||
.getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
|
||||||
((Slot) _slots.get(8)).set(_setstack);
|
|
||||||
_player.containerMenu.broadcastChanges();
|
|
||||||
}
|
|
||||||
if (entity instanceof Player _player)
|
|
||||||
_player.getCooldowns()
|
|
||||||
.addCooldown((entity instanceof Player _plrSlotItem && _plrSlotItem.containerMenu instanceof Supplier _splr && _splr.get() instanceof Map _slt ? ((Slot) _slt.get(0)).getItem() : ItemStack.EMPTY).getItem(), 20);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,295 @@
|
|||||||
|
package net.mcreator.nimsrandombullshit.procedures;
|
||||||
|
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
import net.minecraftforge.items.IItemHandlerModifiable;
|
||||||
|
import net.minecraftforge.common.capabilities.ForgeCapabilities;
|
||||||
|
|
||||||
|
import net.minecraft.world.level.block.entity.BlockEntity;
|
||||||
|
import net.minecraft.world.level.LevelAccessor;
|
||||||
|
import net.minecraft.world.level.Level;
|
||||||
|
import net.minecraft.world.item.enchantment.Enchantments;
|
||||||
|
import net.minecraft.world.item.Items;
|
||||||
|
import net.minecraft.world.item.ItemStack;
|
||||||
|
import net.minecraft.util.RandomSource;
|
||||||
|
import net.minecraft.util.Mth;
|
||||||
|
import net.minecraft.sounds.SoundSource;
|
||||||
|
import net.minecraft.resources.ResourceLocation;
|
||||||
|
import net.minecraft.core.BlockPos;
|
||||||
|
|
||||||
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
|
public class OreMinerTickUpdateProcedure {
|
||||||
|
public static void execute(LevelAccessor world, double x, double y, double z) {
|
||||||
|
double oreMinerRoll = 0;
|
||||||
|
if (!world.isClientSide()) {
|
||||||
|
if (!((new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getItem() == ItemStack.EMPTY.getItem())) {
|
||||||
|
if (world instanceof Level _level) {
|
||||||
|
if (!_level.isClientSide()) {
|
||||||
|
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.amethyst_block.break")), SoundSource.BLOCKS, (float) 0.6,
|
||||||
|
(float) Mth.nextDouble(RandomSource.create(), 0.75, 0.85));
|
||||||
|
} else {
|
||||||
|
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.amethyst_block.break")), SoundSource.BLOCKS, (float) 0.6, (float) Mth.nextDouble(RandomSource.create(), 0.75, 0.85), false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
ItemStack _ist = (new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 0));
|
||||||
|
if (_ist.hurt(15, RandomSource.create(), null)) {
|
||||||
|
_ist.shrink(1);
|
||||||
|
_ist.setDamageValue(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
oreMinerRoll = Math.random();
|
||||||
|
if (oreMinerRoll < 0.4) {
|
||||||
|
{
|
||||||
|
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
|
||||||
|
if (_ent != null) {
|
||||||
|
final int _slotid = 1;
|
||||||
|
final ItemStack _setstack = new ItemStack(Items.COAL).copy();
|
||||||
|
_setstack.setCount((int) (new Object() {
|
||||||
|
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicInteger _retval = new AtomicInteger(0);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getAmount(world, BlockPos.containing(x, y, z), 1) + Mth.nextInt(RandomSource.create(), 1, 3) * ((new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
|
||||||
|
if (capability instanceof IItemHandlerModifiable)
|
||||||
|
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (oreMinerRoll < 0.6) {
|
||||||
|
{
|
||||||
|
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
|
||||||
|
if (_ent != null) {
|
||||||
|
final int _slotid = 2;
|
||||||
|
final ItemStack _setstack = new ItemStack(Items.COPPER_INGOT).copy();
|
||||||
|
_setstack.setCount((int) (new Object() {
|
||||||
|
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicInteger _retval = new AtomicInteger(0);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getAmount(world, BlockPos.containing(x, y, z), 2) + Mth.nextInt(RandomSource.create(), 2, 4) * ((new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
|
||||||
|
if (capability instanceof IItemHandlerModifiable)
|
||||||
|
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (oreMinerRoll < 0.7) {
|
||||||
|
{
|
||||||
|
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
|
||||||
|
if (_ent != null) {
|
||||||
|
final int _slotid = 3;
|
||||||
|
final ItemStack _setstack = new ItemStack(Items.IRON_INGOT).copy();
|
||||||
|
_setstack.setCount((int) (new Object() {
|
||||||
|
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicInteger _retval = new AtomicInteger(0);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getAmount(world, BlockPos.containing(x, y, z), 3) + 1 * ((new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
|
||||||
|
if (capability instanceof IItemHandlerModifiable)
|
||||||
|
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (oreMinerRoll < 0.78) {
|
||||||
|
{
|
||||||
|
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
|
||||||
|
if (_ent != null) {
|
||||||
|
final int _slotid = 4;
|
||||||
|
final ItemStack _setstack = new ItemStack(Items.GOLD_INGOT).copy();
|
||||||
|
_setstack.setCount((int) (new Object() {
|
||||||
|
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicInteger _retval = new AtomicInteger(0);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getAmount(world, BlockPos.containing(x, y, z), 4) + 1 * ((new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
|
||||||
|
if (capability instanceof IItemHandlerModifiable)
|
||||||
|
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (oreMinerRoll < 0.81) {
|
||||||
|
{
|
||||||
|
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
|
||||||
|
if (_ent != null) {
|
||||||
|
final int _slotid = 5;
|
||||||
|
final ItemStack _setstack = new ItemStack(Items.DIAMOND).copy();
|
||||||
|
_setstack.setCount((int) (new Object() {
|
||||||
|
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicInteger _retval = new AtomicInteger(0);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getAmount(world, BlockPos.containing(x, y, z), 5) + Mth.nextInt(RandomSource.create(), 1, 2) * ((new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
|
||||||
|
if (capability instanceof IItemHandlerModifiable)
|
||||||
|
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (oreMinerRoll < 0.84) {
|
||||||
|
{
|
||||||
|
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
|
||||||
|
if (_ent != null) {
|
||||||
|
final int _slotid = 6;
|
||||||
|
final ItemStack _setstack = new ItemStack(Items.EMERALD).copy();
|
||||||
|
_setstack.setCount((int) (new Object() {
|
||||||
|
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicInteger _retval = new AtomicInteger(0);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getAmount(world, BlockPos.containing(x, y, z), 6) + Mth.nextInt(RandomSource.create(), 1, 2) * ((new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
|
||||||
|
if (capability instanceof IItemHandlerModifiable)
|
||||||
|
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (oreMinerRoll < 0.985) {
|
||||||
|
{
|
||||||
|
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
|
||||||
|
if (_ent != null) {
|
||||||
|
final int _slotid = 7;
|
||||||
|
final ItemStack _setstack = new ItemStack(Items.REDSTONE).copy();
|
||||||
|
_setstack.setCount((int) (new Object() {
|
||||||
|
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicInteger _retval = new AtomicInteger(0);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getAmount(world, BlockPos.containing(x, y, z), 7) + Mth.nextInt(RandomSource.create(), 3, 6) * ((new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
|
||||||
|
if (capability instanceof IItemHandlerModifiable)
|
||||||
|
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
{
|
||||||
|
BlockEntity _ent = world.getBlockEntity(BlockPos.containing(x, y, z));
|
||||||
|
if (_ent != null) {
|
||||||
|
final int _slotid = 8;
|
||||||
|
final ItemStack _setstack = new ItemStack(Items.NETHERITE_SCRAP).copy();
|
||||||
|
_setstack.setCount((int) (new Object() {
|
||||||
|
public int getAmount(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicInteger _retval = new AtomicInteger(0);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).getCount()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getAmount(world, BlockPos.containing(x, y, z), 8) + 1 * ((new Object() {
|
||||||
|
public ItemStack getItemStack(LevelAccessor world, BlockPos pos, int slotid) {
|
||||||
|
AtomicReference<ItemStack> _retval = new AtomicReference<>(ItemStack.EMPTY);
|
||||||
|
BlockEntity _ent = world.getBlockEntity(pos);
|
||||||
|
if (_ent != null)
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> _retval.set(capability.getStackInSlot(slotid).copy()));
|
||||||
|
return _retval.get();
|
||||||
|
}
|
||||||
|
}.getItemStack(world, BlockPos.containing(x, y, z), 0)).getEnchantmentLevel(Enchantments.BLOCK_FORTUNE) + 1)));
|
||||||
|
_ent.getCapability(ForgeCapabilities.ITEM_HANDLER, null).ifPresent(capability -> {
|
||||||
|
if (capability instanceof IItemHandlerModifiable)
|
||||||
|
((IItemHandlerModifiable) capability).setStackInSlot(_slotid, _setstack);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -80,13 +80,9 @@ public class BedrockifierGUIMenu extends AbstractContainerMenu implements Suppli
|
|||||||
}
|
}
|
||||||
this.customSlots.put(0, this.addSlot(new SlotItemHandler(internal, 0, 16, 35) {
|
this.customSlots.put(0, this.addSlot(new SlotItemHandler(internal, 0, 16, 35) {
|
||||||
private final int slot = 0;
|
private final int slot = 0;
|
||||||
private int x = BedrockifierGUIMenu.this.x;
|
|
||||||
private int y = BedrockifierGUIMenu.this.y;
|
|
||||||
}));
|
}));
|
||||||
this.customSlots.put(1, this.addSlot(new SlotItemHandler(internal, 1, 70, 35) {
|
this.customSlots.put(1, this.addSlot(new SlotItemHandler(internal, 1, 70, 35) {
|
||||||
private final int slot = 1;
|
private final int slot = 1;
|
||||||
private int x = BedrockifierGUIMenu.this.x;
|
|
||||||
private int y = BedrockifierGUIMenu.this.y;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mayPlace(ItemStack stack) {
|
public boolean mayPlace(ItemStack stack) {
|
||||||
@@ -95,8 +91,6 @@ public class BedrockifierGUIMenu extends AbstractContainerMenu implements Suppli
|
|||||||
}));
|
}));
|
||||||
this.customSlots.put(2, this.addSlot(new SlotItemHandler(internal, 2, 142, 35) {
|
this.customSlots.put(2, this.addSlot(new SlotItemHandler(internal, 2, 142, 35) {
|
||||||
private final int slot = 2;
|
private final int slot = 2;
|
||||||
private int x = BedrockifierGUIMenu.this.x;
|
|
||||||
private int y = BedrockifierGUIMenu.this.y;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mayPlace(ItemStack stack) {
|
public boolean mayPlace(ItemStack stack) {
|
||||||
|
|||||||
@@ -81,8 +81,6 @@ public class OreMinerGUIMenu extends AbstractContainerMenu implements Supplier<M
|
|||||||
}
|
}
|
||||||
this.customSlots.put(0, this.addSlot(new SlotItemHandler(internal, 0, 31, 17) {
|
this.customSlots.put(0, this.addSlot(new SlotItemHandler(internal, 0, 31, 17) {
|
||||||
private final int slot = 0;
|
private final int slot = 0;
|
||||||
private int x = OreMinerGUIMenu.this.x;
|
|
||||||
private int y = OreMinerGUIMenu.this.y;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mayPlace(ItemStack stack) {
|
public boolean mayPlace(ItemStack stack) {
|
||||||
@@ -91,8 +89,6 @@ public class OreMinerGUIMenu extends AbstractContainerMenu implements Supplier<M
|
|||||||
}));
|
}));
|
||||||
this.customSlots.put(1, this.addSlot(new SlotItemHandler(internal, 1, 79, 17) {
|
this.customSlots.put(1, this.addSlot(new SlotItemHandler(internal, 1, 79, 17) {
|
||||||
private final int slot = 1;
|
private final int slot = 1;
|
||||||
private int x = OreMinerGUIMenu.this.x;
|
|
||||||
private int y = OreMinerGUIMenu.this.y;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mayPlace(ItemStack stack) {
|
public boolean mayPlace(ItemStack stack) {
|
||||||
@@ -101,8 +97,6 @@ public class OreMinerGUIMenu extends AbstractContainerMenu implements Supplier<M
|
|||||||
}));
|
}));
|
||||||
this.customSlots.put(2, this.addSlot(new SlotItemHandler(internal, 2, 97, 17) {
|
this.customSlots.put(2, this.addSlot(new SlotItemHandler(internal, 2, 97, 17) {
|
||||||
private final int slot = 2;
|
private final int slot = 2;
|
||||||
private int x = OreMinerGUIMenu.this.x;
|
|
||||||
private int y = OreMinerGUIMenu.this.y;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mayPlace(ItemStack stack) {
|
public boolean mayPlace(ItemStack stack) {
|
||||||
@@ -111,8 +105,6 @@ public class OreMinerGUIMenu extends AbstractContainerMenu implements Supplier<M
|
|||||||
}));
|
}));
|
||||||
this.customSlots.put(3, this.addSlot(new SlotItemHandler(internal, 3, 115, 17) {
|
this.customSlots.put(3, this.addSlot(new SlotItemHandler(internal, 3, 115, 17) {
|
||||||
private final int slot = 3;
|
private final int slot = 3;
|
||||||
private int x = OreMinerGUIMenu.this.x;
|
|
||||||
private int y = OreMinerGUIMenu.this.y;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mayPlace(ItemStack stack) {
|
public boolean mayPlace(ItemStack stack) {
|
||||||
@@ -121,8 +113,6 @@ public class OreMinerGUIMenu extends AbstractContainerMenu implements Supplier<M
|
|||||||
}));
|
}));
|
||||||
this.customSlots.put(4, this.addSlot(new SlotItemHandler(internal, 4, 133, 17) {
|
this.customSlots.put(4, this.addSlot(new SlotItemHandler(internal, 4, 133, 17) {
|
||||||
private final int slot = 4;
|
private final int slot = 4;
|
||||||
private int x = OreMinerGUIMenu.this.x;
|
|
||||||
private int y = OreMinerGUIMenu.this.y;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mayPlace(ItemStack stack) {
|
public boolean mayPlace(ItemStack stack) {
|
||||||
@@ -131,8 +121,6 @@ public class OreMinerGUIMenu extends AbstractContainerMenu implements Supplier<M
|
|||||||
}));
|
}));
|
||||||
this.customSlots.put(5, this.addSlot(new SlotItemHandler(internal, 5, 79, 35) {
|
this.customSlots.put(5, this.addSlot(new SlotItemHandler(internal, 5, 79, 35) {
|
||||||
private final int slot = 5;
|
private final int slot = 5;
|
||||||
private int x = OreMinerGUIMenu.this.x;
|
|
||||||
private int y = OreMinerGUIMenu.this.y;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mayPlace(ItemStack stack) {
|
public boolean mayPlace(ItemStack stack) {
|
||||||
@@ -141,8 +129,6 @@ public class OreMinerGUIMenu extends AbstractContainerMenu implements Supplier<M
|
|||||||
}));
|
}));
|
||||||
this.customSlots.put(6, this.addSlot(new SlotItemHandler(internal, 6, 97, 35) {
|
this.customSlots.put(6, this.addSlot(new SlotItemHandler(internal, 6, 97, 35) {
|
||||||
private final int slot = 6;
|
private final int slot = 6;
|
||||||
private int x = OreMinerGUIMenu.this.x;
|
|
||||||
private int y = OreMinerGUIMenu.this.y;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mayPlace(ItemStack stack) {
|
public boolean mayPlace(ItemStack stack) {
|
||||||
@@ -151,8 +137,6 @@ public class OreMinerGUIMenu extends AbstractContainerMenu implements Supplier<M
|
|||||||
}));
|
}));
|
||||||
this.customSlots.put(7, this.addSlot(new SlotItemHandler(internal, 7, 115, 35) {
|
this.customSlots.put(7, this.addSlot(new SlotItemHandler(internal, 7, 115, 35) {
|
||||||
private final int slot = 7;
|
private final int slot = 7;
|
||||||
private int x = OreMinerGUIMenu.this.x;
|
|
||||||
private int y = OreMinerGUIMenu.this.y;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mayPlace(ItemStack stack) {
|
public boolean mayPlace(ItemStack stack) {
|
||||||
@@ -161,8 +145,6 @@ public class OreMinerGUIMenu extends AbstractContainerMenu implements Supplier<M
|
|||||||
}));
|
}));
|
||||||
this.customSlots.put(8, this.addSlot(new SlotItemHandler(internal, 8, 133, 35) {
|
this.customSlots.put(8, this.addSlot(new SlotItemHandler(internal, 8, 133, 35) {
|
||||||
private final int slot = 8;
|
private final int slot = 8;
|
||||||
private int x = OreMinerGUIMenu.this.x;
|
|
||||||
private int y = OreMinerGUIMenu.this.y;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mayPlace(ItemStack stack) {
|
public boolean mayPlace(ItemStack stack) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ license="Academic Free License v3.0"
|
|||||||
|
|
||||||
[[mods]]
|
[[mods]]
|
||||||
modId="nims_random_bullshit"
|
modId="nims_random_bullshit"
|
||||||
version="1.7.0"
|
version="1.7.1"
|
||||||
displayName="Nim's Random Bullshit"
|
displayName="Nim's Random Bullshit"
|
||||||
displayURL="https://mcreator.net"
|
displayURL="https://mcreator.net"
|
||||||
logoFile="logo.png"
|
logoFile="logo.png"
|
||||||
@@ -23,6 +23,18 @@ description="Random shit added by Nim. Created with MCreator."
|
|||||||
side="BOTH"
|
side="BOTH"
|
||||||
|
|
||||||
|
|
||||||
|
[[dependencies.nims_random_bullshit]]
|
||||||
|
modId="photon"
|
||||||
|
mandatory=false
|
||||||
|
versionRange="[0,)"
|
||||||
|
ordering="NONE"
|
||||||
|
side="BOTH"
|
||||||
|
[[dependencies.nims_random_bullshit]]
|
||||||
|
modId="pehkui"
|
||||||
|
mandatory=false
|
||||||
|
versionRange="[0,)"
|
||||||
|
ordering="NONE"
|
||||||
|
side="BOTH"
|
||||||
|
|
||||||
|
|
||||||
# Start of user code block dependencies configuration
|
# Start of user code block dependencies configuration
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
"item.nims_random_bullshit.netherrack_juice_bucket": "Netherrack Juice Bucket",
|
"item.nims_random_bullshit.netherrack_juice_bucket": "Netherrack Juice Bucket",
|
||||||
"item.nims_random_bullshit.orichalcum": "Orichalcum",
|
"item.nims_random_bullshit.orichalcum": "Orichalcum",
|
||||||
"advancements.magic_egg_advancement.descr": "Obtain a Magic Egg",
|
"advancements.magic_egg_advancement.descr": "Obtain a Magic Egg",
|
||||||
|
"item.nims_random_bullshit.bedrock_eater": "Bedrock Eater",
|
||||||
"block.nims_random_bullshit.rubber_pressure_plate": "Rubber Pressure Plate",
|
"block.nims_random_bullshit.rubber_pressure_plate": "Rubber Pressure Plate",
|
||||||
"item.nims_random_bullshit.orichalcum_armor_leggings": "Orichalcum Leggings",
|
"item.nims_random_bullshit.orichalcum_armor_leggings": "Orichalcum Leggings",
|
||||||
"block.nims_random_bullshit.condensed_netherrack": "Condensed Netherrack",
|
"block.nims_random_bullshit.condensed_netherrack": "Condensed Netherrack",
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 120 B |
|
Before Width: | Height: | Size: 448 B |
|
Before Width: | Height: | Size: 86 B |
|
Before Width: | Height: | Size: 437 B |
|
Before Width: | Height: | Size: 424 B |
|
Before Width: | Height: | Size: 358 B |
|
Before Width: | Height: | Size: 441 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 313 B |
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shaped",
|
||||||
|
"category": "equipment",
|
||||||
|
"pattern": [
|
||||||
|
"ab",
|
||||||
|
"bb"
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"a": {
|
||||||
|
"item": "nims_random_bullshit:block_eater"
|
||||||
|
},
|
||||||
|
"b": {
|
||||||
|
"item": "minecraft:bedrock"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"item": "nims_random_bullshit:bedrock_eater",
|
||||||
|
"count": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
"item": "minecraft:netherite_scrap"
|
"item": "minecraft:netherite_scrap"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"item": "nims_random_bullshit:quadra_condensed_netherrack"
|
"item": "minecraft:bedrock"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"item": "minecraft:gold_ingot"
|
"item": "minecraft:gold_ingot"
|
||||||
|
|||||||