Compare commits
2 Commits
97062fad89
...
43e451f984
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43e451f984 | ||
|
|
f39f255e26 |
63
elements/BlackIronIngot.mod.json
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "item",
|
||||
"definition": {
|
||||
"renderType": 0,
|
||||
"texture": "black_iron_ingot",
|
||||
"customModelName": "Normal",
|
||||
"customProperties": {},
|
||||
"states": [],
|
||||
"name": "Black Iron Ingot",
|
||||
"rarity": "COMMON",
|
||||
"creativeTabs": [
|
||||
{
|
||||
"value": "MATERIALS"
|
||||
}
|
||||
],
|
||||
"stackSize": 64,
|
||||
"enchantability": 0,
|
||||
"useDuration": 0,
|
||||
"toolType": 1.0,
|
||||
"damageCount": 0,
|
||||
"recipeRemainder": {
|
||||
"value": ""
|
||||
},
|
||||
"destroyAnyBlock": false,
|
||||
"immuneToFire": false,
|
||||
"stayInGridWhenCrafting": false,
|
||||
"damageOnCrafting": false,
|
||||
"enableMeleeDamage": false,
|
||||
"damageVsEntity": 0.0,
|
||||
"specialInformation": {
|
||||
"fixedValue": []
|
||||
},
|
||||
"glowCondition": {
|
||||
"fixedValue": false
|
||||
},
|
||||
"inventorySize": 9,
|
||||
"inventoryStackSize": 64,
|
||||
"enableRanged": false,
|
||||
"shootConstantly": false,
|
||||
"rangedItemChargesPower": false,
|
||||
"projectile": {
|
||||
"value": "CUSTOM:ShitProjectile"
|
||||
},
|
||||
"projectileDisableAmmoCheck": false,
|
||||
"isFood": false,
|
||||
"nutritionalValue": 4,
|
||||
"saturation": 0.3,
|
||||
"eatResultItem": {
|
||||
"value": ""
|
||||
},
|
||||
"isMeat": false,
|
||||
"isAlwaysEdible": false,
|
||||
"animation": "none",
|
||||
"isMusicDisc": false,
|
||||
"musicDiscMusic": {
|
||||
"value": ""
|
||||
},
|
||||
"musicDiscDescription": "",
|
||||
"musicDiscLengthInTicks": 100,
|
||||
"musicDiscAnalogOutput": 0
|
||||
}
|
||||
}
|
||||
48
elements/BlackIronIngotRecipe.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": "MISC",
|
||||
"recipeShapeless": true,
|
||||
"recipeSlots": [
|
||||
{
|
||||
"value": "Items.IRON_INGOT"
|
||||
},
|
||||
{
|
||||
"value": "Items.DYE#16"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
}
|
||||
],
|
||||
"recipeReturnStack": {
|
||||
"value": "CUSTOM:BlackIronIngot"
|
||||
},
|
||||
"name": "black_iron_ingot_recipe",
|
||||
"namespace": "mod"
|
||||
}
|
||||
}
|
||||
107
elements/NightVisionGoggles.mod.json
Normal file
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "armor",
|
||||
"definition": {
|
||||
"enableHelmet": true,
|
||||
"textureHelmet": "night_vision_goggles",
|
||||
"enableBody": false,
|
||||
"textureBody": "",
|
||||
"enableLeggings": false,
|
||||
"textureLeggings": "",
|
||||
"enableBoots": false,
|
||||
"textureBoots": "",
|
||||
"onHelmetTick": {
|
||||
"name": "NightVisionGogglesHelmetTickEvent"
|
||||
},
|
||||
"creativeTabs": [
|
||||
{
|
||||
"value": "COMBAT"
|
||||
}
|
||||
],
|
||||
"armorTextureFile": "night_vision_goggles",
|
||||
"helmetName": "Night Vision Goggles",
|
||||
"bodyName": "Night Vision Goggles Chestplate",
|
||||
"leggingsName": "Night Vision Goggles Leggings",
|
||||
"bootsName": "Night Vision Goggles Boots",
|
||||
"helmetSpecialInformation": {
|
||||
"fixedValue": []
|
||||
},
|
||||
"bodySpecialInformation": {
|
||||
"fixedValue": []
|
||||
},
|
||||
"leggingsSpecialInformation": {
|
||||
"fixedValue": []
|
||||
},
|
||||
"bootsSpecialInformation": {
|
||||
"fixedValue": []
|
||||
},
|
||||
"helmetModelName": "Default",
|
||||
"helmetModelPart": "Helmet",
|
||||
"helmetModelTexture": "From armor",
|
||||
"bodyModelName": "Default",
|
||||
"bodyModelPart": "Body",
|
||||
"armsModelPartL": "Arms L",
|
||||
"armsModelPartR": "Arms R",
|
||||
"bodyModelTexture": "From armor",
|
||||
"leggingsModelName": "Default",
|
||||
"leggingsModelPartL": "Leggings L",
|
||||
"leggingsModelPartR": "Leggings R",
|
||||
"leggingsModelTexture": "From armor",
|
||||
"bootsModelName": "Default",
|
||||
"bootsModelPartL": "Boots L",
|
||||
"bootsModelPartR": "Boots R",
|
||||
"bootsModelTexture": "From armor",
|
||||
"helmetItemRenderType": 0,
|
||||
"helmetItemCustomModelName": "Normal",
|
||||
"bodyItemRenderType": 0,
|
||||
"bodyItemCustomModelName": "Normal",
|
||||
"leggingsItemRenderType": 0,
|
||||
"leggingsItemCustomModelName": "Normal",
|
||||
"bootsItemRenderType": 0,
|
||||
"bootsItemCustomModelName": "Normal",
|
||||
"helmetImmuneToFire": false,
|
||||
"bodyImmuneToFire": false,
|
||||
"leggingsImmuneToFire": false,
|
||||
"bootsImmuneToFire": false,
|
||||
"helmetGlowCondition": {
|
||||
"fixedValue": false
|
||||
},
|
||||
"bodyGlowCondition": {
|
||||
"fixedValue": false
|
||||
},
|
||||
"leggingsGlowCondition": {
|
||||
"fixedValue": false
|
||||
},
|
||||
"bootsGlowCondition": {
|
||||
"fixedValue": false
|
||||
},
|
||||
"helmetPiglinNeutral": {
|
||||
"fixedValue": false
|
||||
},
|
||||
"bodyPiglinNeutral": {
|
||||
"fixedValue": false
|
||||
},
|
||||
"leggingsPiglinNeutral": {
|
||||
"fixedValue": false
|
||||
},
|
||||
"bootsPiglinNeutral": {
|
||||
"fixedValue": false
|
||||
},
|
||||
"maxDamage": 15,
|
||||
"damageValueHelmet": 2,
|
||||
"damageValueBody": 0,
|
||||
"damageValueLeggings": 0,
|
||||
"damageValueBoots": 0,
|
||||
"enchantability": 9,
|
||||
"toughness": 0.0,
|
||||
"knockbackResistance": 0.0,
|
||||
"equipSound": {
|
||||
"value": "block.sculk_sensor.clicking"
|
||||
},
|
||||
"repairItems": [
|
||||
{
|
||||
"value": "Blocks.STAINED_GLASS_PANE#5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
7
elements/NightVisionGogglesHelmetTickEvent.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=\"40\" y=\"40\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"world_data_isremote\"></block></value></block></value><statement name=\"DO0\"><block type=\"entity_add_potion_advanced\"><field name=\"potion\">NIGHT_VISION</field><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value><value name=\"duration\"><block type=\"math_number\"><field name=\"NUM\">20</field></block></value><value name=\"ambient\"><block type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"particles\"><block type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></statement></block></next></block></xml>"
|
||||
}
|
||||
}
|
||||
48
elements/NightVisionGogglesRecipe.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:BlackIronIngot"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": "CUSTOM:BlackIronIngot"
|
||||
},
|
||||
{
|
||||
"value": "Blocks.STAINED_GLASS_PANE#5"
|
||||
},
|
||||
{
|
||||
"value": "CUSTOM:BlackIronIngot"
|
||||
},
|
||||
{
|
||||
"value": "Blocks.STAINED_GLASS_PANE#5"
|
||||
},
|
||||
{
|
||||
"value": "CUSTOM:BlackIronIngot"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": "CUSTOM:BlackIronIngot"
|
||||
}
|
||||
],
|
||||
"recipeReturnStack": {
|
||||
"value": "CUSTOM:NightVisionGoggles.helmet"
|
||||
},
|
||||
"name": "night_vision_goggles_recipe",
|
||||
"namespace": "mod"
|
||||
}
|
||||
}
|
||||
7
elements/NightVisionGogglesShaderUpdate.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=\"40\" y=\"40\"><field name=\"trigger\">client_ticks</field><next><block type=\"controls_if\"><mutation elseif=\"1\"></mutation><value name=\"IF0\"><block type=\"logic_binary_ops\" inline=\"false\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"compare_mcitems\"><value name=\"a\"><block type=\"entity_get_armor_slot_item\"><value name=\"slotid\"><block type=\"math_number\"><field name=\"NUM\">3</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"b\"><block type=\"mcitem_all\"><field name=\"value\">CUSTOM:NightVisionGoggles.helmet</field></block></value></block></value><value name=\"B\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"is_shader_active\"></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"load_entity_shader\"><field name=\"load_entity_shader\">CREEPER</field></block></statement><value name=\"IF1\"><block type=\"logic_binary_ops\" inline=\"false\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"compare_mcitems\"><value name=\"a\"><block type=\"entity_get_armor_slot_item\"><value name=\"slotid\"><block type=\"math_number\"><field name=\"NUM\">3</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"b\"><block type=\"mcitem_all\"><field name=\"value\">CUSTOM:NightVisionGoggles.helmet</field></block></value></block></value></block></value><value name=\"B\"><block type=\"is_shader_active\"></block></value></block></value><statement name=\"DO1\"><block type=\"take_off_shader\"></block></statement></block></next></block></xml>"
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@
|
||||
"value": "COMBAT"
|
||||
}
|
||||
],
|
||||
"armorTextureFile": "orichalcum",
|
||||
"armorTextureFile": "orichalcum_armor",
|
||||
"helmetName": "Orichalcum Helmet",
|
||||
"bodyName": "Orichalcum Chestplate",
|
||||
"leggingsName": "Orichalcum Leggings",
|
||||
@@ -96,7 +96,7 @@
|
||||
"toughness": 3.0,
|
||||
"knockbackResistance": 0.1,
|
||||
"equipSound": {
|
||||
"value": ""
|
||||
"value": "item.armor.equip_netherite"
|
||||
},
|
||||
"repairItems": [
|
||||
{
|
||||
|
||||
61
elements/PocketLightning.mod.json
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "item",
|
||||
"definition": {
|
||||
"renderType": 0,
|
||||
"texture": "pocket_lightning",
|
||||
"customModelName": "Ranged item",
|
||||
"customProperties": {},
|
||||
"states": [],
|
||||
"name": "Pocket Lightning",
|
||||
"rarity": "UNCOMMON",
|
||||
"creativeTabs": [],
|
||||
"stackSize": 64,
|
||||
"enchantability": 0,
|
||||
"useDuration": 72000,
|
||||
"toolType": 1.0,
|
||||
"damageCount": 0,
|
||||
"recipeRemainder": {
|
||||
"value": ""
|
||||
},
|
||||
"destroyAnyBlock": false,
|
||||
"immuneToFire": false,
|
||||
"stayInGridWhenCrafting": false,
|
||||
"damageOnCrafting": false,
|
||||
"enableMeleeDamage": false,
|
||||
"damageVsEntity": 0.0,
|
||||
"specialInformation": {
|
||||
"fixedValue": [
|
||||
"Spawns lightning wherever it lands."
|
||||
]
|
||||
},
|
||||
"glowCondition": {
|
||||
"fixedValue": true
|
||||
},
|
||||
"inventorySize": 9,
|
||||
"inventoryStackSize": 64,
|
||||
"enableRanged": true,
|
||||
"shootConstantly": false,
|
||||
"rangedItemChargesPower": true,
|
||||
"projectile": {
|
||||
"value": "CUSTOM:PocketLightningProjectile"
|
||||
},
|
||||
"projectileDisableAmmoCheck": false,
|
||||
"isFood": false,
|
||||
"nutritionalValue": 4,
|
||||
"saturation": 0.3,
|
||||
"eatResultItem": {
|
||||
"value": ""
|
||||
},
|
||||
"isMeat": false,
|
||||
"isAlwaysEdible": false,
|
||||
"animation": "bow",
|
||||
"isMusicDisc": false,
|
||||
"musicDiscMusic": {
|
||||
"value": ""
|
||||
},
|
||||
"musicDiscDescription": "",
|
||||
"musicDiscLengthInTicks": 100,
|
||||
"musicDiscAnalogOutput": 0
|
||||
}
|
||||
}
|
||||
27
elements/PocketLightningProjectile.mod.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "projectile",
|
||||
"definition": {
|
||||
"projectileItem": {
|
||||
"value": "CUSTOM:PocketLightning"
|
||||
},
|
||||
"showParticles": false,
|
||||
"actionSound": {
|
||||
"value": "entity.enderpearl.throw"
|
||||
},
|
||||
"igniteFire": false,
|
||||
"power": 1.0,
|
||||
"damage": 0.0,
|
||||
"knockback": 0,
|
||||
"entityModel": "Default",
|
||||
"customModelTexture": "",
|
||||
"modelWidth": 0.5,
|
||||
"modelHeight": 0.5,
|
||||
"onHitsBlock": {
|
||||
"name": "PocketLightningProjectileProjectileHitsBlock"
|
||||
},
|
||||
"onHitsEntity": {
|
||||
"name": "PocketLightningProjectileProjectileHitsLivingEntity"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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=\"40\" y=\"40\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"world_data_isremote\"></block></value></block></value><statement name=\"DO0\"><block type=\"spawn_entity\"><field name=\"entity\">EntityLightningBolt</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></block></statement></block></next></block></xml>"
|
||||
}
|
||||
}
|
||||
@@ -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=\"40\" y=\"40\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"world_data_isremote\"></block></value></block></value><statement name=\"DO0\"><block type=\"spawn_entity\"><field name=\"entity\">EntityLightningBolt</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></block></statement></block></next></block></xml>"
|
||||
}
|
||||
}
|
||||
48
elements/PocketLightningRecipe.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": "MISC",
|
||||
"recipeShapeless": false,
|
||||
"recipeSlots": [
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": "Items.BLAZE_ROD"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": "Items.BLAZE_ROD"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": "Items.BLAZE_POWDER"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
}
|
||||
],
|
||||
"recipeReturnStack": {
|
||||
"value": "CUSTOM:PocketLightning"
|
||||
},
|
||||
"name": "pocket_lightning_recipe",
|
||||
"namespace": "mod"
|
||||
}
|
||||
}
|
||||
140
elements/RaveBlock.mod.json
Normal file
@@ -0,0 +1,140 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "block",
|
||||
"definition": {
|
||||
"texture": "rave_block",
|
||||
"textureTop": "rave_block",
|
||||
"textureLeft": "rave_block",
|
||||
"textureFront": "rave_block",
|
||||
"textureRight": "rave_block",
|
||||
"textureBack": "rave_block",
|
||||
"renderType": 10,
|
||||
"customModelName": "Normal",
|
||||
"rotationMode": 0,
|
||||
"enablePitch": false,
|
||||
"emissiveRendering": false,
|
||||
"displayFluidOverlay": false,
|
||||
"itemTexture": "",
|
||||
"particleTexture": "",
|
||||
"tintType": "No tint",
|
||||
"isItemTinted": false,
|
||||
"hasTransparency": false,
|
||||
"connectedSides": false,
|
||||
"transparencyType": "SOLID",
|
||||
"disableOffset": false,
|
||||
"boundingBoxes": [
|
||||
{
|
||||
"mx": 0.0,
|
||||
"my": 0.0,
|
||||
"mz": 0.0,
|
||||
"Mx": 16.0,
|
||||
"My": 16.0,
|
||||
"Mz": 16.0,
|
||||
"subtract": false
|
||||
}
|
||||
],
|
||||
"customProperties": [],
|
||||
"name": "Rave Block",
|
||||
"specialInformation": {
|
||||
"fixedValue": []
|
||||
},
|
||||
"hardness": 1.0,
|
||||
"resistance": 3600000.0,
|
||||
"hasGravity": false,
|
||||
"isWaterloggable": false,
|
||||
"creativeTabs": [
|
||||
{
|
||||
"value": "BUILDING_BLOCKS"
|
||||
}
|
||||
],
|
||||
"destroyTool": "Not specified",
|
||||
"customDrop": {
|
||||
"value": ""
|
||||
},
|
||||
"dropAmount": 1,
|
||||
"useLootTableForDrops": false,
|
||||
"requiresCorrectTool": false,
|
||||
"enchantPowerBonus": 0.0,
|
||||
"plantsGrowOn": false,
|
||||
"canRedstoneConnect": false,
|
||||
"lightOpacity": 15,
|
||||
"material": {
|
||||
"value": "NONE"
|
||||
},
|
||||
"tickRate": 4,
|
||||
"tickRandomly": false,
|
||||
"isReplaceable": false,
|
||||
"canProvidePower": false,
|
||||
"emittedRedstonePower": {
|
||||
"fixedValue": 15.0
|
||||
},
|
||||
"colorOnMap": "DEFAULT",
|
||||
"creativePickItem": {
|
||||
"value": ""
|
||||
},
|
||||
"offsetType": "NONE",
|
||||
"aiPathNodeType": "DEFAULT",
|
||||
"flammability": 0,
|
||||
"fireSpreadSpeed": 0,
|
||||
"isLadder": false,
|
||||
"slipperiness": 0.6,
|
||||
"speedFactor": 1.0,
|
||||
"jumpFactor": 1.0,
|
||||
"reactionToPushing": "NORMAL",
|
||||
"isNotColidable": false,
|
||||
"isCustomSoundType": false,
|
||||
"soundOnStep": {
|
||||
"value": "AMETHYST_BLOCK"
|
||||
},
|
||||
"breakSound": {
|
||||
"value": ""
|
||||
},
|
||||
"fallSound": {
|
||||
"value": ""
|
||||
},
|
||||
"hitSound": {
|
||||
"value": ""
|
||||
},
|
||||
"placeSound": {
|
||||
"value": ""
|
||||
},
|
||||
"stepSound": {
|
||||
"value": ""
|
||||
},
|
||||
"luminance": 10,
|
||||
"unbreakable": false,
|
||||
"vanillaToolTier": "NONE",
|
||||
"isBonemealable": false,
|
||||
"hasInventory": false,
|
||||
"openGUIOnRightClick": false,
|
||||
"inventorySize": 9,
|
||||
"inventoryStackSize": 64,
|
||||
"inventoryDropWhenDestroyed": true,
|
||||
"inventoryComparatorPower": true,
|
||||
"inventoryOutSlotIDs": [],
|
||||
"inventoryInSlotIDs": [],
|
||||
"hasEnergyStorage": false,
|
||||
"energyInitial": 0,
|
||||
"energyCapacity": 400000,
|
||||
"energyMaxReceive": 200,
|
||||
"energyMaxExtract": 200,
|
||||
"isFluidTank": false,
|
||||
"fluidCapacity": 8000,
|
||||
"fluidRestrictions": [],
|
||||
"onTickUpdate": {
|
||||
"name": "RaveBlockOnTickUpdate"
|
||||
},
|
||||
"generateFeature": false,
|
||||
"restrictionBiomes": [],
|
||||
"blocksToReplace": [
|
||||
{
|
||||
"value": "TAG:stone_ore_replaceables"
|
||||
}
|
||||
],
|
||||
"generationShape": "UNIFORM",
|
||||
"frequencyPerChunks": 10,
|
||||
"frequencyOnChunk": 16,
|
||||
"minGenerateHeight": 0,
|
||||
"maxGenerateHeight": 64
|
||||
}
|
||||
}
|
||||
7
elements/RaveBlockOnTickUpdate.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=\"40\" y=\"40\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"world_data_is_block_powered\"><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></block></value><statement name=\"DO0\"><block type=\"block_set_blockstate\"><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=\"value\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"math_dual_ops\"><field name=\"OP\">MOD</field><value name=\"A\"><block type=\"block_get_blockstate\"><value name=\"block\"><block type=\"blockstate_from_deps\"></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">5</field></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></value></block></statement></block></next></block></xml>"
|
||||
}
|
||||
}
|
||||
48
elements/RaveBlockRecipe.mod.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "recipe",
|
||||
"definition": {
|
||||
"recipeType": "Crafting",
|
||||
"recipeRetstackSize": 9,
|
||||
"group": "",
|
||||
"cookingBookCategory": "MISC",
|
||||
"xpReward": 0.0,
|
||||
"cookingTime": 200,
|
||||
"craftingBookCategory": "BUILDING",
|
||||
"recipeShapeless": true,
|
||||
"recipeSlots": [
|
||||
{
|
||||
"value": "Blocks.CONCRETE#0"
|
||||
},
|
||||
{
|
||||
"value": "Items.DYE#1"
|
||||
},
|
||||
{
|
||||
"value": "Items.DYE#11"
|
||||
},
|
||||
{
|
||||
"value": "Items.DYE#10"
|
||||
},
|
||||
{
|
||||
"value": "Items.DYE#12"
|
||||
},
|
||||
{
|
||||
"value": "Items.DYE#13"
|
||||
},
|
||||
{
|
||||
"value": "Items.AMETHYST_SHARD"
|
||||
},
|
||||
{
|
||||
"value": "Items.GLOW_INK_SAC"
|
||||
},
|
||||
{
|
||||
"value": "Items.REDSTONE"
|
||||
}
|
||||
],
|
||||
"recipeReturnStack": {
|
||||
"value": "CUSTOM:RaveBlock"
|
||||
},
|
||||
"name": "rave_block_recipe",
|
||||
"namespace": "mod"
|
||||
}
|
||||
}
|
||||
74
elements/RaveBlockStates.mod.json
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "blockstates",
|
||||
"definition": {
|
||||
"block": "RaveBlock",
|
||||
"blockstateList": [
|
||||
{
|
||||
"texture": "rave_block_r",
|
||||
"textureTop": "rave_block_r",
|
||||
"textureLeft": "rave_block_r",
|
||||
"textureFront": "rave_block_r",
|
||||
"textureRight": "rave_block_r",
|
||||
"textureBack": "rave_block_r",
|
||||
"particleTexture": "",
|
||||
"renderType": 0,
|
||||
"customModelName": "Normal",
|
||||
"luminance": 10,
|
||||
"boundingBoxes": []
|
||||
},
|
||||
{
|
||||
"texture": "rave_block_y",
|
||||
"textureTop": "rave_block_y",
|
||||
"textureLeft": "rave_block_y",
|
||||
"textureFront": "rave_block_y",
|
||||
"textureRight": "rave_block_y",
|
||||
"textureBack": "rave_block_y",
|
||||
"particleTexture": "",
|
||||
"renderType": 0,
|
||||
"customModelName": "Normal",
|
||||
"luminance": 10,
|
||||
"boundingBoxes": []
|
||||
},
|
||||
{
|
||||
"texture": "rave_block_g",
|
||||
"textureTop": "rave_block_g",
|
||||
"textureLeft": "rave_block_g",
|
||||
"textureFront": "rave_block_g",
|
||||
"textureRight": "rave_block_g",
|
||||
"textureBack": "rave_block_g",
|
||||
"particleTexture": "",
|
||||
"renderType": 0,
|
||||
"customModelName": "Normal",
|
||||
"luminance": 10,
|
||||
"boundingBoxes": []
|
||||
},
|
||||
{
|
||||
"texture": "rave_block_b",
|
||||
"textureTop": "rave_block_b",
|
||||
"textureLeft": "rave_block_b",
|
||||
"textureFront": "rave_block_b",
|
||||
"textureRight": "rave_block_b",
|
||||
"textureBack": "rave_block_b",
|
||||
"particleTexture": "",
|
||||
"renderType": 0,
|
||||
"customModelName": "Normal",
|
||||
"luminance": 10,
|
||||
"boundingBoxes": []
|
||||
},
|
||||
{
|
||||
"texture": "rave_block_p",
|
||||
"textureTop": "rave_block_p",
|
||||
"textureLeft": "rave_block_p",
|
||||
"textureFront": "rave_block_p",
|
||||
"textureRight": "rave_block_p",
|
||||
"textureBack": "rave_block_p",
|
||||
"particleTexture": "",
|
||||
"renderType": 0,
|
||||
"customModelName": "Normal",
|
||||
"luminance": 10,
|
||||
"boundingBoxes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
26
elements/RuiningEnchantment.mod.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "enchantment",
|
||||
"definition": {
|
||||
"name": "Ruining",
|
||||
"supportedSlots": "mainhand",
|
||||
"weight": 2,
|
||||
"anvilCost": 1,
|
||||
"maxLevel": 5,
|
||||
"damageModifier": 0,
|
||||
"incompatibleEnchantments": [
|
||||
{
|
||||
"value": "CUSTOM:SunderingEnchantment"
|
||||
}
|
||||
],
|
||||
"supportedItems": [
|
||||
{
|
||||
"value": "TAG:minecraft:swords"
|
||||
}
|
||||
],
|
||||
"isTreasureEnchantment": false,
|
||||
"isCurse": false,
|
||||
"canGenerateInLootTables": true,
|
||||
"canVillagerTrade": true
|
||||
}
|
||||
}
|
||||
7
elements/RuiningProcedure.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=\"40\" y=\"40\"><field name=\"trigger\">entity_attacked</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"world_data_isremote\"></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_binary_ops\" inline=\"false\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"damagesource_isequalto\"><field name=\"damagetype\">PLAYER_ATTACK</field><value name=\"damagesource\"><block type=\"damagesource_from_deps\"></block></value></block></value><value name=\"B\"><block type=\"itemstack_has_enchantment\"><field name=\"enhancement\">CUSTOM:RuiningEnchantment</field><value name=\"item\"><block type=\"entity_iteminhand\"><value name=\"entity\"><block type=\"source_entity_from_deps\"></block></value></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"deal_damage\" inline=\"false\"><value name=\"amount\"><block type=\"math_dual_ops\" inline=\"false\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"entity_health\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"B\"><block type=\"math_dual_ops\" inline=\"false\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"item_get_enhancement\"><field name=\"enhancement\">CUSTOM:RuiningEnchantment</field><value name=\"item\"><block type=\"entity_iteminhand\"><value name=\"entity\"><block type=\"source_entity_from_deps\"></block></value></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0.05</field></block></value></block></value></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"damagesource\"><block type=\"damagesource_from_type_cause\"><field name=\"damagetype\">MAGIC</field><value name=\"cause\"><block type=\"source_entity_from_deps\"></block></value></block></value></block></statement></block></statement></block></next></block></xml>"
|
||||
}
|
||||
}
|
||||
26
elements/SunderingEnchantment.mod.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "enchantment",
|
||||
"definition": {
|
||||
"name": "Sundering",
|
||||
"supportedSlots": "mainhand",
|
||||
"weight": 1,
|
||||
"anvilCost": 1,
|
||||
"maxLevel": 5,
|
||||
"damageModifier": 0,
|
||||
"incompatibleEnchantments": [
|
||||
{
|
||||
"value": "CUSTOM:RuiningEnchantment"
|
||||
}
|
||||
],
|
||||
"supportedItems": [
|
||||
{
|
||||
"value": "TAG:minecraft:swords"
|
||||
}
|
||||
],
|
||||
"isTreasureEnchantment": false,
|
||||
"isCurse": false,
|
||||
"canGenerateInLootTables": true,
|
||||
"canVillagerTrade": true
|
||||
}
|
||||
}
|
||||
7
elements/SunderingProcedure.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=\"40\" y=\"40\"><field name=\"trigger\">entity_attacked</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"world_data_isremote\"></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_binary_ops\" inline=\"false\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"damagesource_isequalto\"><field name=\"damagetype\">PLAYER_ATTACK</field><value name=\"damagesource\"><block type=\"damagesource_from_deps\"></block></value></block></value><value name=\"B\"><block type=\"itemstack_has_enchantment\"><field name=\"enhancement\">CUSTOM:SunderingEnchantment</field><value name=\"item\"><block type=\"entity_iteminhand\"><value name=\"entity\"><block type=\"source_entity_from_deps\"></block></value></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"deal_damage\" inline=\"false\"><value name=\"amount\"><block type=\"math_dual_ops\" inline=\"false\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"entity_health_max\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"B\"><block type=\"math_dual_ops\" inline=\"false\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><block type=\"item_get_enhancement\"><field name=\"enhancement\">CUSTOM:SunderingEnchantment</field><value name=\"item\"><block type=\"entity_iteminhand\"><value name=\"entity\"><block type=\"source_entity_from_deps\"></block></value></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0.02</field></block></value></block></value></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"damagesource\"><block type=\"damagesource_from_type_cause\"><field name=\"damagetype\">MAGIC</field><value name=\"cause\"><block type=\"source_entity_from_deps\"></block></value></block></value></block></statement></block></statement></block></next></block></xml>"
|
||||
}
|
||||
}
|
||||
40
elements/WandOfResizing.mod.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "tool",
|
||||
"definition": {
|
||||
"toolType": "Special",
|
||||
"renderType": 0,
|
||||
"blockingRenderType": 0,
|
||||
"texture": "wand_of_resizing",
|
||||
"customModelName": "Normal",
|
||||
"blockingModelName": "Normal blocking",
|
||||
"name": "Wand Of Resizing",
|
||||
"specialInformation": {
|
||||
"fixedValue": [
|
||||
"DISCLAIMER: Does not work with Origins that periodically reset your scale!"
|
||||
]
|
||||
},
|
||||
"creativeTabs": [
|
||||
{
|
||||
"value": "TOOLS"
|
||||
}
|
||||
],
|
||||
"efficiency": 4.0,
|
||||
"attackSpeed": 1.0,
|
||||
"enchantability": 2,
|
||||
"damageVsEntity": 1.0,
|
||||
"usageCount": 0,
|
||||
"glowCondition": {
|
||||
"fixedValue": false
|
||||
},
|
||||
"repairItems": [],
|
||||
"immuneToFire": true,
|
||||
"blockDropsTier": "WOOD",
|
||||
"blocksAffected": [],
|
||||
"stayInGridWhenCrafting": false,
|
||||
"damageOnCrafting": false,
|
||||
"onRightClickedInAir": {
|
||||
"name": "WandOfResizingRightclicked"
|
||||
}
|
||||
}
|
||||
}
|
||||
48
elements/WandOfResizingRecipe.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": ""
|
||||
},
|
||||
{
|
||||
"value": "Items.SPAWN_EGG#58"
|
||||
},
|
||||
{
|
||||
"value": "Items.NETHER_STAR"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": "Items.STICK"
|
||||
},
|
||||
{
|
||||
"value": "Items.SPAWN_EGG#101"
|
||||
},
|
||||
{
|
||||
"value": "Items.STICK"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
}
|
||||
],
|
||||
"recipeReturnStack": {
|
||||
"value": "CUSTOM:WandOfResizing"
|
||||
},
|
||||
"name": "wand_of_resizing_recipe",
|
||||
"namespace": "mod"
|
||||
}
|
||||
}
|
||||
7
elements/WandOfResizingRightclicked.mod.json
Normal file
@@ -3359,6 +3359,444 @@
|
||||
]
|
||||
},
|
||||
"path": "~/Bedrock"
|
||||
},
|
||||
{
|
||||
"name": "WandOfResizing",
|
||||
"type": "tool",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "wand_of_resizing",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/assets/nims_random_bullshit/models/item/wand_of_resizing.json",
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/item/WandOfResizingItem.java"
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "WandOfResizingRightclicked",
|
||||
"type": "procedure",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "wand_of_resizing_rightclicked",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/procedures/WandOfResizingRightclickedProcedure.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": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "WandOfResizingRecipe",
|
||||
"type": "recipe",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "wand_of_resizing_recipe",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/data/nims_random_bullshit/recipes/wand_of_resizing_recipe.json"
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "PocketLightning",
|
||||
"type": "item",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "pocket_lightning",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/assets/nims_random_bullshit/models/item/pocket_lightning.json",
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/item/PocketLightningItem.java"
|
||||
]
|
||||
},
|
||||
"path": "~/PocketLightning"
|
||||
},
|
||||
{
|
||||
"name": "PocketLightningProjectile",
|
||||
"type": "projectile",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "pocket_lightning_projectile",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/entity/PocketLightningProjectileEntity.java"
|
||||
]
|
||||
},
|
||||
"path": "~/PocketLightning"
|
||||
},
|
||||
{
|
||||
"name": "PocketLightningProjectileProjectileHitsBlock",
|
||||
"type": "procedure",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "pocket_lightning_projectile_projectile_hits_block",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/procedures/PocketLightningProjectileProjectileHitsBlockProcedure.java"
|
||||
],
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "x",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "z",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "world",
|
||||
"type": "world"
|
||||
}
|
||||
]
|
||||
},
|
||||
"path": "~/PocketLightning"
|
||||
},
|
||||
{
|
||||
"name": "PocketLightningProjectileProjectileHitsLivingEntity",
|
||||
"type": "procedure",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "pocket_lightning_projectile_projectile_hits_living_entity",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/procedures/PocketLightningProjectileProjectileHitsLivingEntityProcedure.java"
|
||||
],
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "x",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "z",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "world",
|
||||
"type": "world"
|
||||
}
|
||||
]
|
||||
},
|
||||
"path": "~/PocketLightning"
|
||||
},
|
||||
{
|
||||
"name": "PocketLightningRecipe",
|
||||
"type": "recipe",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "pocket_lightning_recipe",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/data/nims_random_bullshit/recipes/pocket_lightning_recipe.json"
|
||||
]
|
||||
},
|
||||
"path": "~/PocketLightning"
|
||||
},
|
||||
{
|
||||
"name": "RuiningEnchantment",
|
||||
"type": "enchantment",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "ruining_enchantment",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/enchantment/RuiningEnchantmentEnchantment.java"
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "RuiningProcedure",
|
||||
"type": "procedure",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "ruining_procedure",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/procedures/RuiningProcedureProcedure.java"
|
||||
],
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "damagesource",
|
||||
"type": "damagesource"
|
||||
},
|
||||
{
|
||||
"name": "entity",
|
||||
"type": "entity"
|
||||
},
|
||||
{
|
||||
"name": "sourceentity",
|
||||
"type": "entity"
|
||||
},
|
||||
{
|
||||
"name": "world",
|
||||
"type": "world"
|
||||
}
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "SunderingEnchantment",
|
||||
"type": "enchantment",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "sundering_enchantment",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/enchantment/SunderingEnchantmentEnchantment.java"
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "SunderingProcedure",
|
||||
"type": "procedure",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "sundering_procedure",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/procedures/SunderingProcedureProcedure.java"
|
||||
],
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "damagesource",
|
||||
"type": "damagesource"
|
||||
},
|
||||
{
|
||||
"name": "entity",
|
||||
"type": "entity"
|
||||
},
|
||||
{
|
||||
"name": "sourceentity",
|
||||
"type": "entity"
|
||||
},
|
||||
{
|
||||
"name": "world",
|
||||
"type": "world"
|
||||
}
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "NightVisionGoggles",
|
||||
"type": "armor",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "night_vision_goggles",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/assets/nims_random_bullshit/models/item/night_vision_goggles_helmet.json",
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/item/NightVisionGogglesItem.java"
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "NightVisionGogglesHelmetTickEvent",
|
||||
"type": "procedure",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "night_vision_goggles_helmet_tick_event",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/procedures/NightVisionGogglesHelmetTickEventProcedure.java"
|
||||
],
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "entity",
|
||||
"type": "entity"
|
||||
},
|
||||
{
|
||||
"name": "world",
|
||||
"type": "world"
|
||||
}
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "NightVisionGogglesShaderUpdate",
|
||||
"type": "procedure",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "night_vision_goggles_shader_update",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/procedures/NightVisionGogglesShaderUpdateProcedure.java"
|
||||
],
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "entity",
|
||||
"type": "entity"
|
||||
},
|
||||
{
|
||||
"name": "world",
|
||||
"type": "world"
|
||||
}
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "BlackIronIngot",
|
||||
"type": "item",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "black_iron_ingot",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/item/BlackIronIngotItem.java",
|
||||
"src/main/resources/assets/nims_random_bullshit/models/item/black_iron_ingot.json"
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "NightVisionGogglesRecipe",
|
||||
"type": "recipe",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "night_vision_goggles_recipe",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/data/nims_random_bullshit/recipes/night_vision_goggles_recipe.json"
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "BlackIronIngotRecipe",
|
||||
"type": "recipe",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "black_iron_ingot_recipe",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/data/nims_random_bullshit/recipes/black_iron_ingot_recipe.json"
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "RaveBlock",
|
||||
"type": "block",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "rave_block",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/assets/nims_random_bullshit/blockstates/rave_block.json",
|
||||
"src/main/resources/assets/nims_random_bullshit/models/item/rave_block.json",
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/block/RaveBlockBlock.java",
|
||||
"src/main/resources/data/nims_random_bullshit/loot_tables/blocks/rave_block.json",
|
||||
"src/main/resources/assets/nims_random_bullshit/models/block/rave_block.json"
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "RaveBlockStates",
|
||||
"type": "blockstates",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "rave_block_states",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/assets/nims_random_bullshit/models/block/rave_block_states_blockstate_4.json",
|
||||
"src/main/resources/assets/nims_random_bullshit/models/block/rave_block_states_blockstate_3.json",
|
||||
"src/main/resources/assets/nims_random_bullshit/models/block/rave_block_states_blockstate_0.json",
|
||||
"src/main/resources/assets/nims_random_bullshit/models/block/rave_block_states_blockstate_1.json",
|
||||
"src/main/resources/assets/nims_random_bullshit/models/block/rave_block_states_blockstate_2.json"
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "RaveBlockOnTickUpdate",
|
||||
"type": "procedure",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "rave_block_on_tick_update",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/nimsrandombullshit/procedures/RaveBlockOnTickUpdateProcedure.java"
|
||||
],
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "blockstate",
|
||||
"type": "blockstate"
|
||||
},
|
||||
{
|
||||
"name": "x",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "z",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "world",
|
||||
"type": "world"
|
||||
}
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
},
|
||||
{
|
||||
"name": "RaveBlockRecipe",
|
||||
"type": "recipe",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "rave_block_recipe",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/data/nims_random_bullshit/recipes/rave_block_recipe.json"
|
||||
]
|
||||
},
|
||||
"path": "~/Other"
|
||||
}
|
||||
],
|
||||
"variable_elements": [],
|
||||
@@ -3373,6 +3811,7 @@
|
||||
"~CUSTOM:Bedrockifier"
|
||||
],
|
||||
"ITEMS:minecraft:pickaxes": [
|
||||
"~CUSTOM:WandOfResizing",
|
||||
"~CUSTOM:OrichalcumPickaxe",
|
||||
"~CUSTOM:BedrockPickaxe",
|
||||
"~CUSTOM:StarWand",
|
||||
@@ -3448,11 +3887,11 @@
|
||||
"language_map": {
|
||||
"en_us": {
|
||||
"advancements.condensed_netherrack_advancement.descr": "Condense Netherrack for the first time",
|
||||
"item.nims_random_bullshit.magic_dust": "Magic Dust",
|
||||
"block.nims_random_bullshit.penta_condensed_netherrack": "Penta-condensed Netherrack",
|
||||
"item.nims_random_bullshit.magic_dust": "Magic Dust",
|
||||
"item.nims_random_bullshit.orichalcum_armor_boots": "Orichalcum Boots",
|
||||
"block.nims_random_bullshit.magma_brick_button": "Magma Brick Button",
|
||||
"advancements.orichalcum_advancement.descr": "Obtain Orichalcum",
|
||||
"block.nims_random_bullshit.magma_brick_button": "Magma Brick Button",
|
||||
"painting.nims_random_bullshit.shit_painting.title": "Shit Painting",
|
||||
"advancements.spawner_advancement.title": "It\u0027s spawnin\u0027 time!",
|
||||
"item.nims_random_bullshit.bedrock_shard": "Bedrock Shard",
|
||||
@@ -3463,9 +3902,10 @@
|
||||
"block.nims_random_bullshit.rubber_slab": "Rubber Slab",
|
||||
"item.nims_random_bullshit.bedrock_upgrade_template": "Bedrock Upgrade Template",
|
||||
"advancements.orichalcum_set_advancement.descr": "Wear a full armor set of Orichalcum.",
|
||||
"block.nims_random_bullshit.redstone_bricks": "Redstone Bricks",
|
||||
"block.nims_random_bullshit.orichalcum_ore": "Orichalcum Ore",
|
||||
"block.nims_random_bullshit.redstone_bricks": "Redstone Bricks",
|
||||
"item.nims_random_bullshit.iron_golem_question_mark": "Iron Golem...?",
|
||||
"item.nims_random_bullshit.wand_of_resizing": "Wand Of Resizing",
|
||||
"item.nims_random_bullshit.lapis_lazuli_nugget": "Lapis Lazuli Nugget",
|
||||
"item.nims_random_bullshit.gravedigger.description_1": "We must dig!",
|
||||
"item.nims_random_bullshit.gravedigger.description_0": "Right-Click on soul sand or soul soil to use them, summoning a ghoul that attacks hostile mobs.",
|
||||
@@ -3474,27 +3914,33 @@
|
||||
"gui.nims_random_bullshit.mailbox_gui.outbox_y_coord": "0",
|
||||
"item.nims_random_bullshit.wither_question_mark": "Wither...?",
|
||||
"advancements.block_eater_advancement.descr": "Eat a block with the Block Eater",
|
||||
"enchantment.nims_random_bullshit.ruining_enchantment": "Ruining",
|
||||
"advancements.tux_advancement.title": "Tux!?",
|
||||
"item.nims_random_bullshit.gravedigger": "Gravedigger",
|
||||
"block.nims_random_bullshit.condensed_condensed_netherrack": "Condensed Condensed Netherrack",
|
||||
"advancements.netherrack_juice_advancement.descr": "Obtain Netherrack Juice",
|
||||
"block.nims_random_bullshit.condensed_condensed_netherrack": "Condensed Condensed Netherrack",
|
||||
"item.nims_random_bullshit.gravedigger": "Gravedigger",
|
||||
"block.nims_random_bullshit.quadra_condensed_netherrack": "Quadra-condensed Netherrack",
|
||||
"advancements.shit_advancement.descr": "Shit",
|
||||
"gui.nims_random_bullshit.bedrockifier_gui.button_empty": "-\u003e",
|
||||
"block.nims_random_bullshit.hexa_condensed_netherrack": "Hexa-condensed Netherrack",
|
||||
"enchantment.nims_random_bullshit.sundering_enchantment": "Sundering",
|
||||
"item.nims_random_bullshit.sand_dust": "Sand Dust",
|
||||
"entity.nims_random_bullshit.tux": "Tux",
|
||||
"block.nims_random_bullshit.bedrockifier": "Bedrockifier",
|
||||
"item.nims_random_bullshit.magic_flesh": "Magic Flesh",
|
||||
"item.nims_random_bullshit.golden_berries": "Golden Berries",
|
||||
"item.nims_random_bullshit.netherrack_juice_bucket": "Netherrack Juice Bucket",
|
||||
"item.nims_random_bullshit.black_iron_ingot": "Black Iron Ingot",
|
||||
"item.nims_random_bullshit.orichalcum": "Orichalcum",
|
||||
"advancements.magic_egg_advancement.descr": "Obtain a Magic Egg",
|
||||
"item.nims_random_bullshit.pocket_lightning.description_0": "Spawns lightning wherever it lands.",
|
||||
"item.nims_random_bullshit.bedrock_eater": "Bedrock Eater",
|
||||
"block.nims_random_bullshit.rubber_pressure_plate": "Rubber Pressure Plate",
|
||||
"item.nims_random_bullshit.orichalcum_armor_leggings": "Orichalcum Leggings",
|
||||
"block.nims_random_bullshit.condensed_netherrack": "Condensed Netherrack",
|
||||
"block.nims_random_bullshit.magma_brick_slabs": "Magma Brick Slab",
|
||||
"item.nims_random_bullshit.pocket_lightning": "Pocket Lightning",
|
||||
"item.nims_random_bullshit.night_vision_goggles_helmet": "Night Vision Goggles",
|
||||
"advancements.orichalcum_set_advancement.title": "Cover Me In Orc Cum",
|
||||
"item.nims_random_bullshit.star_wand": "Star Wand",
|
||||
"gui.nims_random_bullshit.ore_miner_gui.button_mine": "Mine",
|
||||
@@ -3512,6 +3958,7 @@
|
||||
"advancements.orichalcum_advancement.title": "Folly Red Cum",
|
||||
"item.nims_random_bullshit.ghoul_spawn_egg": "Ghoul Spawn Egg",
|
||||
"block.nims_random_bullshit.magma_brick_walls": "Magma Brick Wall",
|
||||
"block.nims_random_bullshit.rave_block": "Rave Block",
|
||||
"gui.nims_random_bullshit.mailbox_gui.label_y": "Y:",
|
||||
"gui.nims_random_bullshit.mailbox_gui.label_z": "Z:",
|
||||
"item.nims_random_bullshit.tux_spawn_egg": "Tux Spawn Egg",
|
||||
@@ -3530,6 +3977,7 @@
|
||||
"item.nims_random_bullshit.netherrackite": "Netherrackite Ingot",
|
||||
"advancements.bedrock_shard_advancement.title": "Unobtainium",
|
||||
"fluid.nims_random_bullshit.netherrack_juice": "Netherrack Juice",
|
||||
"item.nims_random_bullshit.wand_of_resizing.description_0": "DISCLAIMER: Does not work with Origins that periodically reset your scale!",
|
||||
"gui.nims_random_bullshit.mailbox_gui.outbox_z_coord": "0",
|
||||
"advancements.shit_advancement.title": "Oh Shit!",
|
||||
"item.nims_random_bullshit.netherrackite_pickaxe.description_0": "Non-condensed netherracks broken by this pickaxe drop themselves an additional time.",
|
||||
@@ -3620,13 +4068,17 @@
|
||||
{
|
||||
"name": "Orichalcum",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"name": "PocketLightning",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
"workspaceSettings": {
|
||||
"modid": "nims_random_bullshit",
|
||||
"modName": "Nim\u0027s Random Bullshit",
|
||||
"version": "1.7.1",
|
||||
"version": "1.8.0",
|
||||
"description": "Random shit added by Nim. Created with MCreator.",
|
||||
"author": "nimsolated, MCreator",
|
||||
"websiteURL": "https://mcreator.net",
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.block;
|
||||
|
||||
import org.checkerframework.checker.units.qual.s;
|
||||
|
||||
import net.minecraft.world.phys.shapes.VoxelShape;
|
||||
import net.minecraft.world.phys.shapes.CollisionContext;
|
||||
import net.minecraft.world.level.block.state.properties.IntegerProperty;
|
||||
import net.minecraft.world.level.block.state.StateDefinition;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||
import net.minecraft.world.level.block.SoundType;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.level.BlockGetter;
|
||||
import net.minecraft.util.RandomSource;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.core.BlockPos;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.procedures.RaveBlockOnTickUpdateProcedure;
|
||||
|
||||
public class RaveBlockBlock extends Block {
|
||||
public static final IntegerProperty BLOCKSTATE = IntegerProperty.create("blockstate", 0, 5);
|
||||
|
||||
public RaveBlockBlock() {
|
||||
super(BlockBehaviour.Properties.of().sound(SoundType.AMETHYST).strength(1f, 3600000f).lightLevel(s -> (new Object() {
|
||||
public int getLightLevel() {
|
||||
if (s.getValue(BLOCKSTATE) == 1)
|
||||
return 10;
|
||||
if (s.getValue(BLOCKSTATE) == 2)
|
||||
return 10;
|
||||
if (s.getValue(BLOCKSTATE) == 3)
|
||||
return 10;
|
||||
if (s.getValue(BLOCKSTATE) == 4)
|
||||
return 10;
|
||||
if (s.getValue(BLOCKSTATE) == 5)
|
||||
return 10;
|
||||
return 10;
|
||||
}
|
||||
}.getLightLevel())));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {
|
||||
return 15;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VoxelShape getShape(BlockState state, BlockGetter world, BlockPos pos, CollisionContext context) {
|
||||
return box(0, 0, 0, 16, 16, 16);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> builder) {
|
||||
super.createBlockStateDefinition(builder);
|
||||
builder.add(BLOCKSTATE);
|
||||
}
|
||||
|
||||
@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, 4);
|
||||
}
|
||||
|
||||
@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();
|
||||
RaveBlockOnTickUpdateProcedure.execute(world, x, y, z, blockstate);
|
||||
world.scheduleTick(pos, this, 4);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.enchantment;
|
||||
|
||||
import net.minecraft.world.item.enchantment.EnchantmentCategory;
|
||||
import net.minecraft.world.item.enchantment.Enchantment;
|
||||
import net.minecraft.world.item.crafting.Ingredient;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.entity.EquipmentSlot;
|
||||
import net.minecraft.tags.ItemTags;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.init.NimsRandomBullshitModEnchantments;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class RuiningEnchantmentEnchantment extends Enchantment {
|
||||
private static final EnchantmentCategory ENCHANTMENT_CATEGORY = EnchantmentCategory.create("nims_random_bullshit_ruining_enchantment", item -> Ingredient.of(ItemTags.create(new ResourceLocation("minecraft:swords"))).test(new ItemStack(item)));
|
||||
|
||||
public RuiningEnchantmentEnchantment() {
|
||||
super(Enchantment.Rarity.RARE, ENCHANTMENT_CATEGORY, new EquipmentSlot[]{EquipmentSlot.MAINHAND});
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMinCost(int level) {
|
||||
return 1 + level * 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxCost(int level) {
|
||||
return 6 + level * 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxLevel() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean checkCompatibility(Enchantment enchantment) {
|
||||
return super.checkCompatibility(enchantment) && !List.of(NimsRandomBullshitModEnchantments.SUNDERING_ENCHANTMENT.get()).contains(enchantment);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.enchantment;
|
||||
|
||||
import net.minecraft.world.item.enchantment.EnchantmentCategory;
|
||||
import net.minecraft.world.item.enchantment.Enchantment;
|
||||
import net.minecraft.world.item.crafting.Ingredient;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.entity.EquipmentSlot;
|
||||
import net.minecraft.tags.ItemTags;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.init.NimsRandomBullshitModEnchantments;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class SunderingEnchantmentEnchantment extends Enchantment {
|
||||
private static final EnchantmentCategory ENCHANTMENT_CATEGORY = EnchantmentCategory.create("nims_random_bullshit_sundering_enchantment", item -> Ingredient.of(ItemTags.create(new ResourceLocation("minecraft:swords"))).test(new ItemStack(item)));
|
||||
|
||||
public SunderingEnchantmentEnchantment() {
|
||||
super(Enchantment.Rarity.VERY_RARE, ENCHANTMENT_CATEGORY, new EquipmentSlot[]{EquipmentSlot.MAINHAND});
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMinCost(int level) {
|
||||
return 1 + level * 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxCost(int level) {
|
||||
return 6 + level * 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxLevel() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean checkCompatibility(Enchantment enchantment) {
|
||||
return super.checkCompatibility(enchantment) && !List.of(NimsRandomBullshitModEnchantments.RUINING_ENCHANTMENT.get()).contains(enchantment);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.entity;
|
||||
|
||||
import net.minecraftforge.registries.ForgeRegistries;
|
||||
import net.minecraftforge.network.PlayMessages;
|
||||
import net.minecraftforge.network.NetworkHooks;
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
|
||||
import net.minecraft.world.phys.EntityHitResult;
|
||||
import net.minecraft.world.phys.BlockHitResult;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.entity.projectile.ItemSupplier;
|
||||
import net.minecraft.world.entity.projectile.AbstractArrow;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
import net.minecraft.util.RandomSource;
|
||||
import net.minecraft.sounds.SoundSource;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.network.protocol.game.ClientGamePacketListener;
|
||||
import net.minecraft.network.protocol.Packet;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.procedures.PocketLightningProjectileProjectileHitsLivingEntityProcedure;
|
||||
import net.mcreator.nimsrandombullshit.procedures.PocketLightningProjectileProjectileHitsBlockProcedure;
|
||||
import net.mcreator.nimsrandombullshit.init.NimsRandomBullshitModItems;
|
||||
import net.mcreator.nimsrandombullshit.init.NimsRandomBullshitModEntities;
|
||||
|
||||
@OnlyIn(value = Dist.CLIENT, _interface = ItemSupplier.class)
|
||||
public class PocketLightningProjectileEntity extends AbstractArrow implements ItemSupplier {
|
||||
public static final ItemStack PROJECTILE_ITEM = new ItemStack(NimsRandomBullshitModItems.POCKET_LIGHTNING.get());
|
||||
|
||||
public PocketLightningProjectileEntity(PlayMessages.SpawnEntity packet, Level world) {
|
||||
super(NimsRandomBullshitModEntities.POCKET_LIGHTNING_PROJECTILE.get(), world);
|
||||
}
|
||||
|
||||
public PocketLightningProjectileEntity(EntityType<? extends PocketLightningProjectileEntity> type, Level world) {
|
||||
super(type, world);
|
||||
}
|
||||
|
||||
public PocketLightningProjectileEntity(EntityType<? extends PocketLightningProjectileEntity> type, double x, double y, double z, Level world) {
|
||||
super(type, x, y, z, world);
|
||||
}
|
||||
|
||||
public PocketLightningProjectileEntity(EntityType<? extends PocketLightningProjectileEntity> type, LivingEntity entity, Level world) {
|
||||
super(type, entity, world);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Packet<ClientGamePacketListener> getAddEntityPacket() {
|
||||
return NetworkHooks.getEntitySpawningPacket(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
public ItemStack getItem() {
|
||||
return PROJECTILE_ITEM;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ItemStack getPickupItem() {
|
||||
return PROJECTILE_ITEM;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doPostHurtEffects(LivingEntity entity) {
|
||||
super.doPostHurtEffects(entity);
|
||||
entity.setArrowCount(entity.getArrowCount() - 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onHitEntity(EntityHitResult entityHitResult) {
|
||||
super.onHitEntity(entityHitResult);
|
||||
PocketLightningProjectileProjectileHitsLivingEntityProcedure.execute(this.level(), this.getX(), this.getY(), this.getZ());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onHitBlock(BlockHitResult blockHitResult) {
|
||||
super.onHitBlock(blockHitResult);
|
||||
PocketLightningProjectileProjectileHitsBlockProcedure.execute(this.level(), blockHitResult.getBlockPos().getX(), blockHitResult.getBlockPos().getY(), blockHitResult.getBlockPos().getZ());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tick() {
|
||||
super.tick();
|
||||
if (this.inGround)
|
||||
this.discard();
|
||||
}
|
||||
|
||||
public static PocketLightningProjectileEntity shoot(Level world, LivingEntity entity, RandomSource source) {
|
||||
return shoot(world, entity, source, 1f, 0, 0);
|
||||
}
|
||||
|
||||
public static PocketLightningProjectileEntity shoot(Level world, LivingEntity entity, RandomSource source, float pullingPower) {
|
||||
return shoot(world, entity, source, pullingPower * 1f, 0, 0);
|
||||
}
|
||||
|
||||
public static PocketLightningProjectileEntity shoot(Level world, LivingEntity entity, RandomSource random, float power, double damage, int knockback) {
|
||||
PocketLightningProjectileEntity entityarrow = new PocketLightningProjectileEntity(NimsRandomBullshitModEntities.POCKET_LIGHTNING_PROJECTILE.get(), entity, world);
|
||||
entityarrow.shoot(entity.getViewVector(1).x, entity.getViewVector(1).y, entity.getViewVector(1).z, power * 2, 0);
|
||||
entityarrow.setSilent(true);
|
||||
entityarrow.setCritArrow(false);
|
||||
entityarrow.setBaseDamage(damage);
|
||||
entityarrow.setKnockback(knockback);
|
||||
world.addFreshEntity(entityarrow);
|
||||
world.playSound(null, entity.getX(), entity.getY(), entity.getZ(), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("entity.ender_pearl.throw")), SoundSource.PLAYERS, 1, 1f / (random.nextFloat() * 0.5f + 1) + (power / 2));
|
||||
return entityarrow;
|
||||
}
|
||||
|
||||
public static PocketLightningProjectileEntity shoot(LivingEntity entity, LivingEntity target) {
|
||||
PocketLightningProjectileEntity entityarrow = new PocketLightningProjectileEntity(NimsRandomBullshitModEntities.POCKET_LIGHTNING_PROJECTILE.get(), entity, entity.level());
|
||||
double dx = target.getX() - entity.getX();
|
||||
double dy = target.getY() + target.getEyeHeight() - 1.1;
|
||||
double dz = target.getZ() - entity.getZ();
|
||||
entityarrow.shoot(dx, dy - entityarrow.getY() + Math.hypot(dx, dz) * 0.2F, dz, 1f * 2, 12.0F);
|
||||
entityarrow.setSilent(true);
|
||||
entityarrow.setBaseDamage(0);
|
||||
entityarrow.setKnockback(0);
|
||||
entityarrow.setCritArrow(false);
|
||||
entity.level().addFreshEntity(entityarrow);
|
||||
entity.level().playSound(null, entity.getX(), entity.getY(), entity.getZ(), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("entity.ender_pearl.throw")), SoundSource.PLAYERS, 1, 1f / (RandomSource.create().nextFloat() * 0.5f + 1));
|
||||
return entityarrow;
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,7 @@ import net.mcreator.nimsrandombullshit.block.RedstoneBricksBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.RedstoneBrickWallsBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.RedstoneBrickStairsBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.RedstoneBrickSlabsBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.RaveBlockBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.QuadraCondensedNetherrackBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.PentaCondensedNetherrackBlock;
|
||||
import net.mcreator.nimsrandombullshit.block.OrichalcumOreBlock;
|
||||
@@ -58,6 +59,7 @@ public class NimsRandomBullshitModBlocks {
|
||||
public static final RegistryObject<Block> BEDROCKIFIER = REGISTRY.register("bedrockifier", () -> new BedrockifierBlock());
|
||||
public static final RegistryObject<Block> ORICHALCUM_ORE = REGISTRY.register("orichalcum_ore", () -> new OrichalcumOreBlock());
|
||||
public static final RegistryObject<Block> ORICHALCUM_BLOCK = REGISTRY.register("orichalcum_block", () -> new OrichalcumBlockBlock());
|
||||
public static final RegistryObject<Block> RAVE_BLOCK = REGISTRY.register("rave_block", () -> new RaveBlockBlock());
|
||||
// Start of user code block custom blocks
|
||||
// End of user code block custom blocks
|
||||
}
|
||||
|
||||
@@ -10,10 +10,14 @@ import net.minecraftforge.registries.DeferredRegister;
|
||||
|
||||
import net.minecraft.world.item.enchantment.Enchantment;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.enchantment.SunderingEnchantmentEnchantment;
|
||||
import net.mcreator.nimsrandombullshit.enchantment.RuiningEnchantmentEnchantment;
|
||||
import net.mcreator.nimsrandombullshit.enchantment.PassiveIncomeEnchantmentEnchantment;
|
||||
import net.mcreator.nimsrandombullshit.NimsRandomBullshitMod;
|
||||
|
||||
public class NimsRandomBullshitModEnchantments {
|
||||
public static final DeferredRegister<Enchantment> REGISTRY = DeferredRegister.create(ForgeRegistries.ENCHANTMENTS, NimsRandomBullshitMod.MODID);
|
||||
public static final RegistryObject<Enchantment> PASSIVE_INCOME_ENCHANTMENT = REGISTRY.register("passive_income_enchantment", () -> new PassiveIncomeEnchantmentEnchantment());
|
||||
public static final RegistryObject<Enchantment> RUINING_ENCHANTMENT = REGISTRY.register("ruining_enchantment", () -> new RuiningEnchantmentEnchantment());
|
||||
public static final RegistryObject<Enchantment> SUNDERING_ENCHANTMENT = REGISTRY.register("sundering_enchantment", () -> new SunderingEnchantmentEnchantment());
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ import net.minecraft.world.entity.Entity;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.entity.TuxEntity;
|
||||
import net.mcreator.nimsrandombullshit.entity.ShitProjectileEntity;
|
||||
import net.mcreator.nimsrandombullshit.entity.PocketLightningProjectileEntity;
|
||||
import net.mcreator.nimsrandombullshit.entity.GhoulEntity;
|
||||
import net.mcreator.nimsrandombullshit.NimsRandomBullshitMod;
|
||||
|
||||
@@ -32,6 +33,9 @@ public class NimsRandomBullshitModEntities {
|
||||
EntityType.Builder.<TuxEntity>of(TuxEntity::new, MobCategory.MONSTER).setShouldReceiveVelocityUpdates(true).setTrackingRange(64).setUpdateInterval(3).setCustomClientFactory(TuxEntity::new)
|
||||
|
||||
.sized(0.6f, 1.8f));
|
||||
public static final RegistryObject<EntityType<PocketLightningProjectileEntity>> POCKET_LIGHTNING_PROJECTILE = register("pocket_lightning_projectile",
|
||||
EntityType.Builder.<PocketLightningProjectileEntity>of(PocketLightningProjectileEntity::new, MobCategory.MISC).setCustomClientFactory(PocketLightningProjectileEntity::new).setShouldReceiveVelocityUpdates(true).setTrackingRange(64)
|
||||
.setUpdateInterval(1).sized(0.5f, 0.5f));
|
||||
|
||||
// Start of user code block custom entities
|
||||
// End of user code block custom entities
|
||||
|
||||
@@ -21,5 +21,6 @@ public class NimsRandomBullshitModEntityRenderers {
|
||||
event.registerEntityRenderer(NimsRandomBullshitModEntities.SHIT_PROJECTILE.get(), ThrownItemRenderer::new);
|
||||
event.registerEntityRenderer(NimsRandomBullshitModEntities.GHOUL.get(), GhoulRenderer::new);
|
||||
event.registerEntityRenderer(NimsRandomBullshitModEntities.TUX.get(), TuxRenderer::new);
|
||||
event.registerEntityRenderer(NimsRandomBullshitModEntities.POCKET_LIGHTNING_PROJECTILE.get(), ThrownItemRenderer::new);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,11 +14,13 @@ import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.item.BlockItem;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.item.WitherQuestionMarkItem;
|
||||
import net.mcreator.nimsrandombullshit.item.WandOfResizingItem;
|
||||
import net.mcreator.nimsrandombullshit.item.StarWandItem;
|
||||
import net.mcreator.nimsrandombullshit.item.StarItem;
|
||||
import net.mcreator.nimsrandombullshit.item.SnowGolemQuestionMarkItem;
|
||||
import net.mcreator.nimsrandombullshit.item.ShitItem;
|
||||
import net.mcreator.nimsrandombullshit.item.SandDustItem;
|
||||
import net.mcreator.nimsrandombullshit.item.PocketLightningItem;
|
||||
import net.mcreator.nimsrandombullshit.item.OrichalcumSwordItem;
|
||||
import net.mcreator.nimsrandombullshit.item.OrichalcumShovelItem;
|
||||
import net.mcreator.nimsrandombullshit.item.OrichalcumPickaxeItem;
|
||||
@@ -26,6 +28,7 @@ import net.mcreator.nimsrandombullshit.item.OrichalcumItem;
|
||||
import net.mcreator.nimsrandombullshit.item.OrichalcumHoeItem;
|
||||
import net.mcreator.nimsrandombullshit.item.OrichalcumAxeItem;
|
||||
import net.mcreator.nimsrandombullshit.item.OrichalcumArmorItem;
|
||||
import net.mcreator.nimsrandombullshit.item.NightVisionGogglesItem;
|
||||
import net.mcreator.nimsrandombullshit.item.NetherrackitePickaxeItem;
|
||||
import net.mcreator.nimsrandombullshit.item.NetherrackiteItem;
|
||||
import net.mcreator.nimsrandombullshit.item.NetherrackJuiceItem;
|
||||
@@ -38,6 +41,7 @@ import net.mcreator.nimsrandombullshit.item.GravediggerItem;
|
||||
import net.mcreator.nimsrandombullshit.item.GoldenBerriesItem;
|
||||
import net.mcreator.nimsrandombullshit.item.CheeseItem;
|
||||
import net.mcreator.nimsrandombullshit.item.BlockEaterItem;
|
||||
import net.mcreator.nimsrandombullshit.item.BlackIronIngotItem;
|
||||
import net.mcreator.nimsrandombullshit.item.BedrockUpgradeTemplateItem;
|
||||
import net.mcreator.nimsrandombullshit.item.BedrockSwordItem;
|
||||
import net.mcreator.nimsrandombullshit.item.BedrockShardItem;
|
||||
@@ -105,6 +109,11 @@ public class NimsRandomBullshitModItems {
|
||||
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_EATER = REGISTRY.register("bedrock_eater", () -> new BedrockEaterItem());
|
||||
public static final RegistryObject<Item> WAND_OF_RESIZING = REGISTRY.register("wand_of_resizing", () -> new WandOfResizingItem());
|
||||
public static final RegistryObject<Item> POCKET_LIGHTNING = REGISTRY.register("pocket_lightning", () -> new PocketLightningItem());
|
||||
public static final RegistryObject<Item> NIGHT_VISION_GOGGLES_HELMET = REGISTRY.register("night_vision_goggles_helmet", () -> new NightVisionGogglesItem.Helmet());
|
||||
public static final RegistryObject<Item> BLACK_IRON_INGOT = REGISTRY.register("black_iron_ingot", () -> new BlackIronIngotItem());
|
||||
public static final RegistryObject<Item> RAVE_BLOCK = block(NimsRandomBullshitModBlocks.RAVE_BLOCK);
|
||||
|
||||
// Start of user code block custom items
|
||||
// End of user code block custom items
|
||||
|
||||
@@ -35,6 +35,7 @@ public class NimsRandomBullshitModTabs {
|
||||
tabData.accept(NimsRandomBullshitModBlocks.MAGMA_BRICK_WALLS.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.ORICHALCUM_ORE.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.ORICHALCUM_BLOCK.get().asItem());
|
||||
tabData.accept(NimsRandomBullshitModBlocks.RAVE_BLOCK.get().asItem());
|
||||
} else if (tabData.getTabKey() == CreativeModeTabs.TOOLS_AND_UTILITIES) {
|
||||
tabData.accept(NimsRandomBullshitModItems.BLOCK_EATER.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.NETHERRACKITE_PICKAXE.get());
|
||||
@@ -49,6 +50,7 @@ public class NimsRandomBullshitModTabs {
|
||||
tabData.accept(NimsRandomBullshitModItems.ORICHALCUM_SHOVEL.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.ORICHALCUM_HOE.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.BEDROCK_EATER.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.WAND_OF_RESIZING.get());
|
||||
} else if (tabData.getTabKey() == CreativeModeTabs.INGREDIENTS) {
|
||||
tabData.accept(NimsRandomBullshitModItems.NETHERRACKITE.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.SAND_DUST.get());
|
||||
@@ -62,6 +64,7 @@ public class NimsRandomBullshitModTabs {
|
||||
tabData.accept(NimsRandomBullshitModItems.SNOW_GOLEM_QUESTION_MARK.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.ORICHALCUM.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.BEDROCK_SHARD.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.BLACK_IRON_INGOT.get());
|
||||
} else if (tabData.getTabKey() == CreativeModeTabs.FOOD_AND_DRINKS) {
|
||||
tabData.accept(NimsRandomBullshitModItems.MAGIC_FLESH.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.GOLDEN_BERRIES.get());
|
||||
@@ -86,6 +89,7 @@ public class NimsRandomBullshitModTabs {
|
||||
tabData.accept(NimsRandomBullshitModItems.ORICHALCUM_ARMOR_CHESTPLATE.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.ORICHALCUM_ARMOR_LEGGINGS.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.ORICHALCUM_ARMOR_BOOTS.get());
|
||||
tabData.accept(NimsRandomBullshitModItems.NIGHT_VISION_GOGGLES_HELMET.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.item;
|
||||
|
||||
import net.minecraft.world.item.Rarity;
|
||||
import net.minecraft.world.item.Item;
|
||||
|
||||
public class BlackIronIngotItem extends Item {
|
||||
public BlackIronIngotItem() {
|
||||
super(new Item.Properties().stacksTo(64).rarity(Rarity.COMMON));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.item;
|
||||
|
||||
import net.minecraftforge.registries.ForgeRegistries;
|
||||
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.item.crafting.Ingredient;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.item.ArmorMaterial;
|
||||
import net.minecraft.world.item.ArmorItem;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.entity.EquipmentSlot;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.sounds.SoundEvent;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.procedures.NightVisionGogglesHelmetTickEventProcedure;
|
||||
|
||||
import com.google.common.collect.Iterables;
|
||||
|
||||
public abstract class NightVisionGogglesItem extends ArmorItem {
|
||||
public NightVisionGogglesItem(ArmorItem.Type type, Item.Properties properties) {
|
||||
super(new ArmorMaterial() {
|
||||
@Override
|
||||
public int getDurabilityForType(ArmorItem.Type type) {
|
||||
return new int[]{13, 15, 16, 11}[type.getSlot().getIndex()] * 15;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDefenseForType(ArmorItem.Type type) {
|
||||
return new int[]{0, 0, 0, 2}[type.getSlot().getIndex()];
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEnchantmentValue() {
|
||||
return 9;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoundEvent getEquipSound() {
|
||||
return ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.sculk_sensor.clicking"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Ingredient getRepairIngredient() {
|
||||
return Ingredient.of(new ItemStack(Blocks.LIME_STAINED_GLASS_PANE));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "night_vision_goggles";
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getToughness() {
|
||||
return 0f;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getKnockbackResistance() {
|
||||
return 0f;
|
||||
}
|
||||
}, type, properties);
|
||||
}
|
||||
|
||||
public static class Helmet extends NightVisionGogglesItem {
|
||||
public Helmet() {
|
||||
super(ArmorItem.Type.HELMET, new Item.Properties());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlot slot, String type) {
|
||||
return "nims_random_bullshit:textures/models/armor/night_vision_goggles_layer_1.png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void inventoryTick(ItemStack itemstack, Level world, Entity entity, int slot, boolean selected) {
|
||||
super.inventoryTick(itemstack, world, entity, slot, selected);
|
||||
if (entity instanceof Player player && Iterables.contains(player.getArmorSlots(), itemstack)) {
|
||||
NightVisionGogglesHelmetTickEventProcedure.execute(world, entity);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.item;
|
||||
|
||||
import net.minecraftforge.registries.ForgeRegistries;
|
||||
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.item.crafting.Ingredient;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
@@ -10,8 +12,8 @@ import net.minecraft.world.item.ArmorItem;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.entity.EquipmentSlot;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.sounds.SoundEvents;
|
||||
import net.minecraft.sounds.SoundEvent;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.procedures.OrichalcumArmorBootsTickEventProcedure;
|
||||
import net.mcreator.nimsrandombullshit.init.NimsRandomBullshitModItems;
|
||||
@@ -38,7 +40,7 @@ public abstract class OrichalcumArmorItem extends ArmorItem {
|
||||
|
||||
@Override
|
||||
public SoundEvent getEquipSound() {
|
||||
return SoundEvents.EMPTY;
|
||||
return ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("item.armor.equip_netherite"));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -70,7 +72,7 @@ public abstract class OrichalcumArmorItem extends ArmorItem {
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlot slot, String type) {
|
||||
return "nims_random_bullshit:textures/models/armor/orichalcum_layer_1.png";
|
||||
return "nims_random_bullshit:textures/models/armor/orichalcum_armor_layer_1.png";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +83,7 @@ public abstract class OrichalcumArmorItem extends ArmorItem {
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlot slot, String type) {
|
||||
return "nims_random_bullshit:textures/models/armor/orichalcum_layer_1.png";
|
||||
return "nims_random_bullshit:textures/models/armor/orichalcum_armor_layer_1.png";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,7 +94,7 @@ public abstract class OrichalcumArmorItem extends ArmorItem {
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlot slot, String type) {
|
||||
return "nims_random_bullshit:textures/models/armor/orichalcum_layer_2.png";
|
||||
return "nims_random_bullshit:textures/models/armor/orichalcum_armor_layer_2.png";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,7 +105,7 @@ public abstract class OrichalcumArmorItem extends ArmorItem {
|
||||
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlot slot, String type) {
|
||||
return "nims_random_bullshit:textures/models/armor/orichalcum_layer_1.png";
|
||||
return "nims_random_bullshit:textures/models/armor/orichalcum_armor_layer_1.png";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.item;
|
||||
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.item.UseAnim;
|
||||
import net.minecraft.world.item.TooltipFlag;
|
||||
import net.minecraft.world.item.Rarity;
|
||||
import net.minecraft.world.item.ProjectileWeaponItem;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.item.BowItem;
|
||||
import net.minecraft.world.entity.projectile.AbstractArrow;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.InteractionResultHolder;
|
||||
import net.minecraft.world.InteractionHand;
|
||||
import net.minecraft.server.level.ServerPlayer;
|
||||
import net.minecraft.network.chat.Component;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.entity.PocketLightningProjectileEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class PocketLightningItem extends Item {
|
||||
public PocketLightningItem() {
|
||||
super(new Item.Properties().stacksTo(64).rarity(Rarity.UNCOMMON));
|
||||
}
|
||||
|
||||
@Override
|
||||
public UseAnim getUseAnimation(ItemStack itemstack) {
|
||||
return UseAnim.BOW;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getUseDuration(ItemStack itemstack) {
|
||||
return 72000;
|
||||
}
|
||||
|
||||
@Override
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
public boolean isFoil(ItemStack itemstack) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void appendHoverText(ItemStack itemstack, Level level, List<Component> list, TooltipFlag flag) {
|
||||
super.appendHoverText(itemstack, level, list, flag);
|
||||
list.add(Component.translatable("item.nims_random_bullshit.pocket_lightning.description_0"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public InteractionResultHolder<ItemStack> use(Level world, Player entity, InteractionHand hand) {
|
||||
InteractionResultHolder<ItemStack> ar = InteractionResultHolder.fail(entity.getItemInHand(hand));
|
||||
if (entity.getAbilities().instabuild || findAmmo(entity) != ItemStack.EMPTY) {
|
||||
ar = InteractionResultHolder.success(entity.getItemInHand(hand));
|
||||
entity.startUsingItem(hand);
|
||||
}
|
||||
return ar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void releaseUsing(ItemStack itemstack, Level world, LivingEntity entity, int time) {
|
||||
if (!world.isClientSide() && entity instanceof ServerPlayer player) {
|
||||
float pullingPower = BowItem.getPowerForTime(this.getUseDuration(itemstack) - time);
|
||||
if (pullingPower < 0.1)
|
||||
return;
|
||||
ItemStack stack = findAmmo(player);
|
||||
if (player.getAbilities().instabuild || stack != ItemStack.EMPTY) {
|
||||
PocketLightningProjectileEntity projectile = PocketLightningProjectileEntity.shoot(world, entity, world.getRandom(), pullingPower);
|
||||
if (player.getAbilities().instabuild) {
|
||||
projectile.pickup = AbstractArrow.Pickup.CREATIVE_ONLY;
|
||||
} else {
|
||||
if (stack.isDamageableItem()) {
|
||||
if (stack.hurt(1, world.getRandom(), player)) {
|
||||
stack.shrink(1);
|
||||
stack.setDamageValue(0);
|
||||
if (stack.isEmpty())
|
||||
player.getInventory().removeItem(stack);
|
||||
}
|
||||
} else {
|
||||
stack.shrink(1);
|
||||
if (stack.isEmpty())
|
||||
player.getInventory().removeItem(stack);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private ItemStack findAmmo(Player player) {
|
||||
ItemStack stack = ProjectileWeaponItem.getHeldProjectile(player, e -> e.getItem() == PocketLightningProjectileEntity.PROJECTILE_ITEM.getItem());
|
||||
if (stack == ItemStack.EMPTY) {
|
||||
for (int i = 0; i < player.getInventory().items.size(); i++) {
|
||||
ItemStack teststack = player.getInventory().items.get(i);
|
||||
if (teststack != null && teststack.getItem() == PocketLightningProjectileEntity.PROJECTILE_ITEM.getItem()) {
|
||||
stack = teststack;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return stack;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
|
||||
package net.mcreator.nimsrandombullshit.item;
|
||||
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.item.TooltipFlag;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.entity.ai.attributes.Attributes;
|
||||
import net.minecraft.world.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.world.entity.ai.attributes.Attribute;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.EquipmentSlot;
|
||||
import net.minecraft.world.InteractionResultHolder;
|
||||
import net.minecraft.world.InteractionHand;
|
||||
import net.minecraft.network.chat.Component;
|
||||
import net.minecraft.core.BlockPos;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.procedures.WandOfResizingRightclickedProcedure;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
import com.google.common.collect.ImmutableMultimap;
|
||||
|
||||
public class WandOfResizingItem extends Item {
|
||||
public WandOfResizingItem() {
|
||||
super(new Item.Properties().durability(0).fireResistant());
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getDestroySpeed(ItemStack itemstack, BlockState blockstate) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean mineBlock(ItemStack itemstack, Level world, BlockState blockstate, BlockPos pos, LivingEntity entity) {
|
||||
itemstack.hurtAndBreak(1, entity, i -> i.broadcastBreakEvent(EquipmentSlot.MAINHAND));
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hurtEnemy(ItemStack itemstack, LivingEntity entity, LivingEntity sourceentity) {
|
||||
itemstack.hurtAndBreak(2, entity, i -> i.broadcastBreakEvent(EquipmentSlot.MAINHAND));
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public InteractionResultHolder<ItemStack> use(Level world, Player entity, InteractionHand hand) {
|
||||
InteractionResultHolder<ItemStack> ar = super.use(world, entity, hand);
|
||||
WandOfResizingRightclickedProcedure.execute(world, entity.getX(), entity.getY(), entity.getZ(), entity, ar.getObject());
|
||||
return ar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEnchantmentValue() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Multimap<Attribute, AttributeModifier> getDefaultAttributeModifiers(EquipmentSlot equipmentSlot) {
|
||||
if (equipmentSlot == EquipmentSlot.MAINHAND) {
|
||||
ImmutableMultimap.Builder<Attribute, AttributeModifier> builder = ImmutableMultimap.builder();
|
||||
builder.putAll(super.getDefaultAttributeModifiers(equipmentSlot));
|
||||
builder.put(Attributes.ATTACK_DAMAGE, new AttributeModifier(BASE_ATTACK_DAMAGE_UUID, "Tool modifier", 0f, AttributeModifier.Operation.ADDITION));
|
||||
builder.put(Attributes.ATTACK_SPEED, new AttributeModifier(BASE_ATTACK_SPEED_UUID, "Tool modifier", -3, AttributeModifier.Operation.ADDITION));
|
||||
return builder.build();
|
||||
}
|
||||
return super.getDefaultAttributeModifiers(equipmentSlot);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void appendHoverText(ItemStack itemstack, Level level, List<Component> list, TooltipFlag flag) {
|
||||
super.appendHoverText(itemstack, level, list, flag);
|
||||
list.add(Component.translatable("item.nims_random_bullshit.wand_of_resizing.description_0"));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package net.mcreator.nimsrandombullshit.procedures;
|
||||
|
||||
import net.minecraft.world.level.LevelAccessor;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.effect.MobEffects;
|
||||
import net.minecraft.world.effect.MobEffectInstance;
|
||||
|
||||
public class NightVisionGogglesHelmetTickEventProcedure {
|
||||
public static void execute(LevelAccessor world, Entity entity) {
|
||||
if (entity == null)
|
||||
return;
|
||||
if (!world.isClientSide()) {
|
||||
if (entity instanceof LivingEntity _entity && !_entity.level().isClientSide())
|
||||
_entity.addEffect(new MobEffectInstance(MobEffects.NIGHT_VISION, 20, 0, false, false));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package net.mcreator.nimsrandombullshit.procedures;
|
||||
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.eventbus.api.Event;
|
||||
import net.minecraftforge.event.TickEvent;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
|
||||
import net.minecraft.world.level.LevelAccessor;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.entity.monster.Creeper;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.EquipmentSlot;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.client.Minecraft;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.init.NimsRandomBullshitModItems;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@Mod.EventBusSubscriber(value = Dist.CLIENT)
|
||||
public class NightVisionGogglesShaderUpdateProcedure {
|
||||
@SubscribeEvent
|
||||
public static void onClientTick(TickEvent.ClientTickEvent event) {
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
if (mc.level == null)
|
||||
return;
|
||||
if (event.phase != TickEvent.Phase.END)
|
||||
return;
|
||||
execute(event, mc.level, mc.player);
|
||||
}
|
||||
|
||||
public static void execute(LevelAccessor world, Entity entity) {
|
||||
execute(null, world, entity);
|
||||
}
|
||||
|
||||
private static void execute(@Nullable Event event, LevelAccessor world, Entity entity) {
|
||||
if (entity == null)
|
||||
return;
|
||||
if ((entity instanceof LivingEntity _entGetArmor ? _entGetArmor.getItemBySlot(EquipmentSlot.HEAD) : ItemStack.EMPTY).getItem() == NimsRandomBullshitModItems.NIGHT_VISION_GOGGLES_HELMET.get()
|
||||
&& !(Minecraft.getInstance().gameRenderer.currentEffect() != null)) {
|
||||
Minecraft.getInstance().gameRenderer.checkEntityPostEffect(new Creeper(EntityType.CREEPER, (Level) world));
|
||||
} else if (!((entity instanceof LivingEntity _entGetArmor ? _entGetArmor.getItemBySlot(EquipmentSlot.HEAD) : ItemStack.EMPTY).getItem() == NimsRandomBullshitModItems.NIGHT_VISION_GOGGLES_HELMET.get())
|
||||
&& Minecraft.getInstance().gameRenderer.currentEffect() != null) {
|
||||
Minecraft.getInstance().gameRenderer.shutdownEffect();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package net.mcreator.nimsrandombullshit.procedures;
|
||||
|
||||
import net.minecraft.world.level.LevelAccessor;
|
||||
import net.minecraft.world.entity.MobSpawnType;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.core.BlockPos;
|
||||
|
||||
public class PocketLightningProjectileProjectileHitsBlockProcedure {
|
||||
public static void execute(LevelAccessor world, double x, double y, double z) {
|
||||
if (!world.isClientSide()) {
|
||||
if (world instanceof ServerLevel _level) {
|
||||
Entity entityToSpawn = EntityType.LIGHTNING_BOLT.spawn(_level, BlockPos.containing(x, y, z), MobSpawnType.MOB_SUMMONED);
|
||||
if (entityToSpawn != null) {
|
||||
entityToSpawn.setYRot(world.getRandom().nextFloat() * 360F);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package net.mcreator.nimsrandombullshit.procedures;
|
||||
|
||||
import net.minecraft.world.level.LevelAccessor;
|
||||
import net.minecraft.world.entity.MobSpawnType;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.core.BlockPos;
|
||||
|
||||
public class PocketLightningProjectileProjectileHitsLivingEntityProcedure {
|
||||
public static void execute(LevelAccessor world, double x, double y, double z) {
|
||||
if (!world.isClientSide()) {
|
||||
if (world instanceof ServerLevel _level) {
|
||||
Entity entityToSpawn = EntityType.LIGHTNING_BOLT.spawn(_level, BlockPos.containing(x, y, z), MobSpawnType.MOB_SUMMONED);
|
||||
if (entityToSpawn != null) {
|
||||
entityToSpawn.setYRot(world.getRandom().nextFloat() * 360F);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package net.mcreator.nimsrandombullshit.procedures;
|
||||
|
||||
import net.minecraft.world.level.block.state.properties.IntegerProperty;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.LevelAccessor;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.core.BlockPos;
|
||||
|
||||
public class RaveBlockOnTickUpdateProcedure {
|
||||
public static void execute(LevelAccessor world, double x, double y, double z, BlockState blockstate) {
|
||||
if (!(world instanceof Level _level0 && _level0.hasNeighborSignal(BlockPos.containing(x, y, z)))) {
|
||||
{
|
||||
int _value = (int) ((blockstate.getBlock().getStateDefinition().getProperty("blockstate") instanceof IntegerProperty _getip2 ? blockstate.getValue(_getip2) : -1) % 5 + 1);
|
||||
BlockPos _pos = BlockPos.containing(x, y, z);
|
||||
BlockState _bs = world.getBlockState(_pos);
|
||||
if (_bs.getBlock().getStateDefinition().getProperty("blockstate") instanceof IntegerProperty _integerProp && _integerProp.getPossibleValues().contains(_value))
|
||||
world.setBlock(_pos, _bs.setValue(_integerProp, _value), 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package net.mcreator.nimsrandombullshit.procedures;
|
||||
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.eventbus.api.Event;
|
||||
import net.minecraftforge.event.entity.living.LivingAttackEvent;
|
||||
|
||||
import net.minecraft.world.level.LevelAccessor;
|
||||
import net.minecraft.world.item.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.damagesource.DamageTypes;
|
||||
import net.minecraft.world.damagesource.DamageSource;
|
||||
import net.minecraft.core.registries.Registries;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.init.NimsRandomBullshitModEnchantments;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@Mod.EventBusSubscriber
|
||||
public class RuiningProcedureProcedure {
|
||||
@SubscribeEvent
|
||||
public static void onEntityAttacked(LivingAttackEvent event) {
|
||||
if (event != null && event.getEntity() != null) {
|
||||
execute(event, event.getEntity().level(), event.getSource(), event.getEntity(), event.getSource().getEntity());
|
||||
}
|
||||
}
|
||||
|
||||
public static void execute(LevelAccessor world, DamageSource damagesource, Entity entity, Entity sourceentity) {
|
||||
execute(null, world, damagesource, entity, sourceentity);
|
||||
}
|
||||
|
||||
private static void execute(@Nullable Event event, LevelAccessor world, DamageSource damagesource, Entity entity, Entity sourceentity) {
|
||||
if (damagesource == null || entity == null || sourceentity == null)
|
||||
return;
|
||||
if (!world.isClientSide()) {
|
||||
if (damagesource.is(DamageTypes.PLAYER_ATTACK)
|
||||
&& EnchantmentHelper.getItemEnchantmentLevel(NimsRandomBullshitModEnchantments.RUINING_ENCHANTMENT.get(), (sourceentity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY)) != 0) {
|
||||
entity.hurt(new DamageSource(world.registryAccess().registryOrThrow(Registries.DAMAGE_TYPE).getHolderOrThrow(DamageTypes.MAGIC), sourceentity), (float) ((entity instanceof LivingEntity _livEnt ? _livEnt.getHealth() : -1)
|
||||
* (sourceentity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getEnchantmentLevel(NimsRandomBullshitModEnchantments.RUINING_ENCHANTMENT.get()) * 0.05));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package net.mcreator.nimsrandombullshit.procedures;
|
||||
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.eventbus.api.Event;
|
||||
import net.minecraftforge.event.entity.living.LivingAttackEvent;
|
||||
|
||||
import net.minecraft.world.level.LevelAccessor;
|
||||
import net.minecraft.world.item.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.damagesource.DamageTypes;
|
||||
import net.minecraft.world.damagesource.DamageSource;
|
||||
import net.minecraft.core.registries.Registries;
|
||||
|
||||
import net.mcreator.nimsrandombullshit.init.NimsRandomBullshitModEnchantments;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@Mod.EventBusSubscriber
|
||||
public class SunderingProcedureProcedure {
|
||||
@SubscribeEvent
|
||||
public static void onEntityAttacked(LivingAttackEvent event) {
|
||||
if (event != null && event.getEntity() != null) {
|
||||
execute(event, event.getEntity().level(), event.getSource(), event.getEntity(), event.getSource().getEntity());
|
||||
}
|
||||
}
|
||||
|
||||
public static void execute(LevelAccessor world, DamageSource damagesource, Entity entity, Entity sourceentity) {
|
||||
execute(null, world, damagesource, entity, sourceentity);
|
||||
}
|
||||
|
||||
private static void execute(@Nullable Event event, LevelAccessor world, DamageSource damagesource, Entity entity, Entity sourceentity) {
|
||||
if (damagesource == null || entity == null || sourceentity == null)
|
||||
return;
|
||||
if (!world.isClientSide()) {
|
||||
if (damagesource.is(DamageTypes.PLAYER_ATTACK)
|
||||
&& EnchantmentHelper.getItemEnchantmentLevel(NimsRandomBullshitModEnchantments.SUNDERING_ENCHANTMENT.get(), (sourceentity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY)) != 0) {
|
||||
entity.hurt(new DamageSource(world.registryAccess().registryOrThrow(Registries.DAMAGE_TYPE).getHolderOrThrow(DamageTypes.MAGIC), sourceentity), (float) ((entity instanceof LivingEntity _livEnt ? _livEnt.getMaxHealth() : -1)
|
||||
* (sourceentity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getEnchantmentLevel(NimsRandomBullshitModEnchantments.SUNDERING_ENCHANTMENT.get()) * 0.02));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package net.mcreator.nimsrandombullshit.procedures;
|
||||
|
||||
import virtuoel.pehkui.api.ScaleTypes;
|
||||
import virtuoel.pehkui.api.ScaleOperations;
|
||||
|
||||
import net.minecraftforge.registries.ForgeRegistries;
|
||||
|
||||
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.resources.ResourceLocation;
|
||||
import net.minecraft.core.BlockPos;
|
||||
|
||||
public class WandOfResizingRightclickedProcedure {
|
||||
public static void execute(LevelAccessor world, double x, double y, double z, Entity entity, ItemStack itemstack) {
|
||||
if (entity == null)
|
||||
return;
|
||||
if (entity.isShiftKeyDown()) {
|
||||
if (ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale() > 0.26 && ScaleTypes.WIDTH.getScaleData(entity).getTargetScale() > 0.26) {
|
||||
if (entity instanceof Player _player)
|
||||
_player.getCooldowns().addCooldown(itemstack.getItem(), 70);
|
||||
ScaleTypes.HEIGHT.getScaleData(entity).setTargetScale((float) ScaleOperations.SET.applyAsDouble(ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale(), (ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale() / 2)));
|
||||
ScaleTypes.WIDTH.getScaleData(entity).setTargetScale((float) ScaleOperations.SET.applyAsDouble(ScaleTypes.WIDTH.getScaleData(entity).getTargetScale(), (ScaleTypes.WIDTH.getScaleData(entity).getTargetScale() / 2)));
|
||||
if (world instanceof Level _level) {
|
||||
if (!_level.isClientSide()) {
|
||||
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.beacon.activate")), SoundSource.BLOCKS, (float) 0.85, (float) 1.2);
|
||||
} else {
|
||||
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.beacon.activate")), SoundSource.BLOCKS, (float) 0.85, (float) 1.2, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale() < 1.99 && ScaleTypes.WIDTH.getScaleData(entity).getTargetScale() < 1.99) {
|
||||
if (entity instanceof Player _player)
|
||||
_player.getCooldowns().addCooldown(itemstack.getItem(), 70);
|
||||
ScaleTypes.HEIGHT.getScaleData(entity).setTargetScale((float) ScaleOperations.SET.applyAsDouble(ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale(), (ScaleTypes.HEIGHT.getScaleData(entity).getTargetScale() * 2)));
|
||||
ScaleTypes.WIDTH.getScaleData(entity).setTargetScale((float) ScaleOperations.SET.applyAsDouble(ScaleTypes.WIDTH.getScaleData(entity).getTargetScale(), (ScaleTypes.WIDTH.getScaleData(entity).getTargetScale() * 2)));
|
||||
if (world instanceof Level _level) {
|
||||
if (!_level.isClientSide()) {
|
||||
_level.playSound(null, BlockPos.containing(x, y, z), ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.beacon.activate")), SoundSource.BLOCKS, (float) 0.85, (float) 0.8);
|
||||
} else {
|
||||
_level.playLocalSound(x, y, z, ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.beacon.activate")), SoundSource.BLOCKS, (float) 0.85, (float) 0.8, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ license="Academic Free License v3.0"
|
||||
|
||||
[[mods]]
|
||||
modId="nims_random_bullshit"
|
||||
version="1.7.1"
|
||||
version="1.8.0"
|
||||
displayName="Nim's Random Bullshit"
|
||||
displayURL="https://mcreator.net"
|
||||
logoFile="logo.png"
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"variants": {
|
||||
"blockstate=0": {
|
||||
"model": "nims_random_bullshit:block/rave_block"
|
||||
},
|
||||
"blockstate=1": {
|
||||
"model": "nims_random_bullshit:block/rave_block_states_blockstate_0"
|
||||
},
|
||||
"blockstate=2": {
|
||||
"model": "nims_random_bullshit:block/rave_block_states_blockstate_1"
|
||||
},
|
||||
"blockstate=3": {
|
||||
"model": "nims_random_bullshit:block/rave_block_states_blockstate_2"
|
||||
},
|
||||
"blockstate=4": {
|
||||
"model": "nims_random_bullshit:block/rave_block_states_blockstate_3"
|
||||
},
|
||||
"blockstate=5": {
|
||||
"model": "nims_random_bullshit:block/rave_block_states_blockstate_4"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"advancements.condensed_netherrack_advancement.descr": "Condense Netherrack for the first time",
|
||||
"item.nims_random_bullshit.magic_dust": "Magic Dust",
|
||||
"block.nims_random_bullshit.penta_condensed_netherrack": "Penta-condensed Netherrack",
|
||||
"item.nims_random_bullshit.magic_dust": "Magic Dust",
|
||||
"item.nims_random_bullshit.orichalcum_armor_boots": "Orichalcum Boots",
|
||||
"block.nims_random_bullshit.magma_brick_button": "Magma Brick Button",
|
||||
"advancements.orichalcum_advancement.descr": "Obtain Orichalcum",
|
||||
"block.nims_random_bullshit.magma_brick_button": "Magma Brick Button",
|
||||
"painting.nims_random_bullshit.shit_painting.title": "Shit Painting",
|
||||
"advancements.spawner_advancement.title": "It\u0027s spawnin\u0027 time!",
|
||||
"item.nims_random_bullshit.bedrock_shard": "Bedrock Shard",
|
||||
@@ -15,9 +15,10 @@
|
||||
"block.nims_random_bullshit.rubber_slab": "Rubber Slab",
|
||||
"item.nims_random_bullshit.bedrock_upgrade_template": "Bedrock Upgrade Template",
|
||||
"advancements.orichalcum_set_advancement.descr": "Wear a full armor set of Orichalcum.",
|
||||
"block.nims_random_bullshit.redstone_bricks": "Redstone Bricks",
|
||||
"block.nims_random_bullshit.orichalcum_ore": "Orichalcum Ore",
|
||||
"block.nims_random_bullshit.redstone_bricks": "Redstone Bricks",
|
||||
"item.nims_random_bullshit.iron_golem_question_mark": "Iron Golem...?",
|
||||
"item.nims_random_bullshit.wand_of_resizing": "Wand Of Resizing",
|
||||
"item.nims_random_bullshit.lapis_lazuli_nugget": "Lapis Lazuli Nugget",
|
||||
"item.nims_random_bullshit.gravedigger.description_1": "We must dig!",
|
||||
"item.nims_random_bullshit.gravedigger.description_0": "Right-Click on soul sand or soul soil to use them, summoning a ghoul that attacks hostile mobs.",
|
||||
@@ -26,27 +27,33 @@
|
||||
"gui.nims_random_bullshit.mailbox_gui.outbox_y_coord": "0",
|
||||
"item.nims_random_bullshit.wither_question_mark": "Wither...?",
|
||||
"advancements.block_eater_advancement.descr": "Eat a block with the Block Eater",
|
||||
"enchantment.nims_random_bullshit.ruining_enchantment": "Ruining",
|
||||
"advancements.tux_advancement.title": "Tux!?",
|
||||
"item.nims_random_bullshit.gravedigger": "Gravedigger",
|
||||
"block.nims_random_bullshit.condensed_condensed_netherrack": "Condensed Condensed Netherrack",
|
||||
"advancements.netherrack_juice_advancement.descr": "Obtain Netherrack Juice",
|
||||
"block.nims_random_bullshit.condensed_condensed_netherrack": "Condensed Condensed Netherrack",
|
||||
"item.nims_random_bullshit.gravedigger": "Gravedigger",
|
||||
"block.nims_random_bullshit.quadra_condensed_netherrack": "Quadra-condensed Netherrack",
|
||||
"advancements.shit_advancement.descr": "Shit",
|
||||
"gui.nims_random_bullshit.bedrockifier_gui.button_empty": "-\u003e",
|
||||
"block.nims_random_bullshit.hexa_condensed_netherrack": "Hexa-condensed Netherrack",
|
||||
"enchantment.nims_random_bullshit.sundering_enchantment": "Sundering",
|
||||
"item.nims_random_bullshit.sand_dust": "Sand Dust",
|
||||
"entity.nims_random_bullshit.tux": "Tux",
|
||||
"block.nims_random_bullshit.bedrockifier": "Bedrockifier",
|
||||
"item.nims_random_bullshit.magic_flesh": "Magic Flesh",
|
||||
"item.nims_random_bullshit.golden_berries": "Golden Berries",
|
||||
"item.nims_random_bullshit.netherrack_juice_bucket": "Netherrack Juice Bucket",
|
||||
"item.nims_random_bullshit.black_iron_ingot": "Black Iron Ingot",
|
||||
"item.nims_random_bullshit.orichalcum": "Orichalcum",
|
||||
"advancements.magic_egg_advancement.descr": "Obtain a Magic Egg",
|
||||
"item.nims_random_bullshit.pocket_lightning.description_0": "Spawns lightning wherever it lands.",
|
||||
"item.nims_random_bullshit.bedrock_eater": "Bedrock Eater",
|
||||
"block.nims_random_bullshit.rubber_pressure_plate": "Rubber Pressure Plate",
|
||||
"item.nims_random_bullshit.orichalcum_armor_leggings": "Orichalcum Leggings",
|
||||
"block.nims_random_bullshit.condensed_netherrack": "Condensed Netherrack",
|
||||
"block.nims_random_bullshit.magma_brick_slabs": "Magma Brick Slab",
|
||||
"item.nims_random_bullshit.pocket_lightning": "Pocket Lightning",
|
||||
"item.nims_random_bullshit.night_vision_goggles_helmet": "Night Vision Goggles",
|
||||
"advancements.orichalcum_set_advancement.title": "Cover Me In Orc Cum",
|
||||
"item.nims_random_bullshit.star_wand": "Star Wand",
|
||||
"gui.nims_random_bullshit.ore_miner_gui.button_mine": "Mine",
|
||||
@@ -64,6 +71,7 @@
|
||||
"advancements.orichalcum_advancement.title": "Folly Red Cum",
|
||||
"item.nims_random_bullshit.ghoul_spawn_egg": "Ghoul Spawn Egg",
|
||||
"block.nims_random_bullshit.magma_brick_walls": "Magma Brick Wall",
|
||||
"block.nims_random_bullshit.rave_block": "Rave Block",
|
||||
"gui.nims_random_bullshit.mailbox_gui.label_y": "Y:",
|
||||
"gui.nims_random_bullshit.mailbox_gui.label_z": "Z:",
|
||||
"item.nims_random_bullshit.tux_spawn_egg": "Tux Spawn Egg",
|
||||
@@ -82,6 +90,7 @@
|
||||
"item.nims_random_bullshit.netherrackite": "Netherrackite Ingot",
|
||||
"advancements.bedrock_shard_advancement.title": "Unobtainium",
|
||||
"fluid.nims_random_bullshit.netherrack_juice": "Netherrack Juice",
|
||||
"item.nims_random_bullshit.wand_of_resizing.description_0": "DISCLAIMER: Does not work with Origins that periodically reset your scale!",
|
||||
"gui.nims_random_bullshit.mailbox_gui.outbox_z_coord": "0",
|
||||
"advancements.shit_advancement.title": "Oh Shit!",
|
||||
"item.nims_random_bullshit.netherrackite_pickaxe.description_0": "Non-condensed netherracks broken by this pickaxe drop themselves an additional time.",
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"parent": "block/cube",
|
||||
"textures": {
|
||||
"down": "nims_random_bullshit:block/rave_block",
|
||||
"up": "nims_random_bullshit:block/rave_block",
|
||||
"north": "nims_random_bullshit:block/rave_block",
|
||||
"east": "nims_random_bullshit:block/rave_block",
|
||||
"south": "nims_random_bullshit:block/rave_block",
|
||||
"west": "nims_random_bullshit:block/rave_block",
|
||||
"particle": "nims_random_bullshit:block/rave_block"
|
||||
},
|
||||
"render_type": "solid"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"parent": "block/cube",
|
||||
"textures": {
|
||||
"down": "nims_random_bullshit:block/rave_block_r",
|
||||
"up": "nims_random_bullshit:block/rave_block_r",
|
||||
"north": "nims_random_bullshit:block/rave_block_r",
|
||||
"east": "nims_random_bullshit:block/rave_block_r",
|
||||
"south": "nims_random_bullshit:block/rave_block_r",
|
||||
"west": "nims_random_bullshit:block/rave_block_r",
|
||||
"particle": "nims_random_bullshit:block/rave_block"
|
||||
},
|
||||
"render_type": "solid"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"parent": "block/cube",
|
||||
"textures": {
|
||||
"down": "nims_random_bullshit:block/rave_block_y",
|
||||
"up": "nims_random_bullshit:block/rave_block_y",
|
||||
"north": "nims_random_bullshit:block/rave_block_y",
|
||||
"east": "nims_random_bullshit:block/rave_block_y",
|
||||
"south": "nims_random_bullshit:block/rave_block_y",
|
||||
"west": "nims_random_bullshit:block/rave_block_y",
|
||||
"particle": "nims_random_bullshit:block/rave_block"
|
||||
},
|
||||
"render_type": "solid"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"parent": "block/cube",
|
||||
"textures": {
|
||||
"down": "nims_random_bullshit:block/rave_block_g",
|
||||
"up": "nims_random_bullshit:block/rave_block_g",
|
||||
"north": "nims_random_bullshit:block/rave_block_g",
|
||||
"east": "nims_random_bullshit:block/rave_block_g",
|
||||
"south": "nims_random_bullshit:block/rave_block_g",
|
||||
"west": "nims_random_bullshit:block/rave_block_g",
|
||||
"particle": "nims_random_bullshit:block/rave_block"
|
||||
},
|
||||
"render_type": "solid"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"parent": "block/cube",
|
||||
"textures": {
|
||||
"down": "nims_random_bullshit:block/rave_block_b",
|
||||
"up": "nims_random_bullshit:block/rave_block_b",
|
||||
"north": "nims_random_bullshit:block/rave_block_b",
|
||||
"east": "nims_random_bullshit:block/rave_block_b",
|
||||
"south": "nims_random_bullshit:block/rave_block_b",
|
||||
"west": "nims_random_bullshit:block/rave_block_b",
|
||||
"particle": "nims_random_bullshit:block/rave_block"
|
||||
},
|
||||
"render_type": "solid"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"parent": "block/cube",
|
||||
"textures": {
|
||||
"down": "nims_random_bullshit:block/rave_block_p",
|
||||
"up": "nims_random_bullshit:block/rave_block_p",
|
||||
"north": "nims_random_bullshit:block/rave_block_p",
|
||||
"east": "nims_random_bullshit:block/rave_block_p",
|
||||
"south": "nims_random_bullshit:block/rave_block_p",
|
||||
"west": "nims_random_bullshit:block/rave_block_p",
|
||||
"particle": "nims_random_bullshit:block/rave_block"
|
||||
},
|
||||
"render_type": "solid"
|
||||
}
|
||||
|
After Width: | Height: | Size: 88 B |
|
After Width: | Height: | Size: 86 B |
|
After Width: | Height: | Size: 86 B |
|
After Width: | Height: | Size: 86 B |
|
After Width: | Height: | Size: 86 B |
|
After Width: | Height: | Size: 86 B |
|
After Width: | Height: | Size: 173 B |
|
After Width: | Height: | Size: 116 B |
|
After Width: | Height: | Size: 135 B |
|
After Width: | Height: | Size: 327 B |
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"nims_random_bullshit:wand_of_resizing",
|
||||
"nims_random_bullshit:orichalcum_pickaxe",
|
||||
"nims_random_bullshit:bedrock_pickaxe",
|
||||
"nims_random_bullshit:star_wand",
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"type": "minecraft:block",
|
||||
"random_sequence": "nims_random_bullshit:blocks/rave_block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:survives_explosion"
|
||||
}
|
||||
],
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "nims_random_bullshit:rave_block"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"category": "misc",
|
||||
"ingredients": [
|
||||
{
|
||||
"item": "minecraft:iron_ingot"
|
||||
},
|
||||
{
|
||||
"item": "minecraft:black_dye"
|
||||
}
|
||||
],
|
||||
"result": {
|
||||
"item": "nims_random_bullshit:black_iron_ingot",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"category": "equipment",
|
||||
"pattern": [
|
||||
"a a",
|
||||
"bab",
|
||||
"a a"
|
||||
],
|
||||
"key": {
|
||||
"a": {
|
||||
"item": "nims_random_bullshit:black_iron_ingot"
|
||||
},
|
||||
"b": {
|
||||
"item": "minecraft:lime_stained_glass_pane"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"item": "nims_random_bullshit:night_vision_goggles_helmet",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"category": "misc",
|
||||
"pattern": [
|
||||
" a",
|
||||
" a ",
|
||||
"b "
|
||||
],
|
||||
"key": {
|
||||
"a": {
|
||||
"item": "minecraft:blaze_rod"
|
||||
},
|
||||
"b": {
|
||||
"item": "minecraft:blaze_powder"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"item": "nims_random_bullshit:pocket_lightning",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"category": "building",
|
||||
"ingredients": [
|
||||
{
|
||||
"item": "minecraft:white_concrete"
|
||||
},
|
||||
{
|
||||
"item": "minecraft:red_dye"
|
||||
},
|
||||
{
|
||||
"item": "minecraft:yellow_dye"
|
||||
},
|
||||
{
|
||||
"item": "minecraft:lime_dye"
|
||||
},
|
||||
{
|
||||
"item": "minecraft:light_blue_dye"
|
||||
},
|
||||
{
|
||||
"item": "minecraft:magenta_dye"
|
||||
},
|
||||
{
|
||||
"item": "minecraft:amethyst_shard"
|
||||
},
|
||||
{
|
||||
"item": "minecraft:glow_ink_sac"
|
||||
},
|
||||
{
|
||||
"item": "minecraft:redstone"
|
||||
}
|
||||
],
|
||||
"result": {
|
||||
"item": "nims_random_bullshit:rave_block",
|
||||
"count": 9
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"category": "equipment",
|
||||
"pattern": [
|
||||
" ab",
|
||||
" cd",
|
||||
"c "
|
||||
],
|
||||
"key": {
|
||||
"a": {
|
||||
"item": "minecraft:enderman_spawn_egg"
|
||||
},
|
||||
"b": {
|
||||
"item": "minecraft:nether_star"
|
||||
},
|
||||
"c": {
|
||||
"item": "minecraft:stick"
|
||||
},
|
||||
"d": {
|
||||
"item": "minecraft:rabbit_spawn_egg"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"item": "nims_random_bullshit:wand_of_resizing",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||