Skip to content

Commit

Permalink
Made Chocolate Bar Mould useable.
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorWolfgamingDE committed Jul 3, 2024
1 parent 42afa11 commit 481b0c2
Show file tree
Hide file tree
Showing 19 changed files with 756 additions and 8 deletions.
102 changes: 101 additions & 1 deletion assortedcuisine.mcreator
Original file line number Diff line number Diff line change
Expand Up @@ -2459,11 +2459,110 @@
"files": [
"src/main/resources/assets/assortedcuisine/blockstates/chocolate_bar_mould.json",
"src/main/java/net/juniorwmg/assortedcuisine/block/ChocolateBarMouldBlock.java",
"src/main/java/net/juniorwmg/assortedcuisine/block/entity/ChocolateBarMouldBlockEntity.java",
"src/main/resources/assets/assortedcuisine/models/block/chocolate_bar_mould.json",
"src/main/resources/assets/assortedcuisine/models/item/chocolate_bar_mould.json"
]
},
"path": "~/Candy"
},
{
"name": "ChocolateBarMouldUpdateTick",
"type": "procedure",
"sortid": 155,
"compiles": true,
"locked_code": false,
"registry_name": "chocolate_bar_mould_update_tick",
"metadata": {
"files": [
"src/main/java/net/juniorwmg/assortedcuisine/procedures/ChocolateBarMouldUpdateTickProcedure.java"
],
"dependencies": [
{
"name": "x",
"type": "number"
},
{
"name": "y",
"type": "number"
},
{
"name": "z",
"type": "number"
},
{
"name": "world",
"type": "world"
}
]
},
"path": "~/Candy"
},
{
"name": "ChocolateBarMouldRightClicked",
"type": "procedure",
"sortid": 156,
"compiles": true,
"locked_code": false,
"registry_name": "chocolate_bar_mould_right_clicked",
"metadata": {
"files": [
"src/main/java/net/juniorwmg/assortedcuisine/procedures/ChocolateBarMouldRightClickedProcedure.java"
],
"dependencies": [
{
"name": "entity",
"type": "entity"
},
{
"name": "x",
"type": "number"
},
{
"name": "y",
"type": "number"
},
{
"name": "z",
"type": "number"
},
{
"name": "world",
"type": "world"
}
]
},
"path": "~/Candy"
},
{
"name": "ChocolateBar",
"type": "item",
"sortid": 157,
"compiles": true,
"locked_code": false,
"registry_name": "chocolate_bar",
"metadata": {
"files": [
"src/main/java/net/juniorwmg/assortedcuisine/item/ChocolateBarItem.java",
"src/main/resources/assets/assortedcuisine/models/item/chocolate_bar.json"
]
},
"path": "~/Candy"
},
{
"name": "ChocolateBarMouldBlockstates",
"type": "blockstates",
"sortid": 158,
"compiles": true,
"locked_code": false,
"registry_name": "chocolate_bar_mould_blockstates",
"metadata": {
"files": [
"src/main/resources/assets/assortedcuisine/models/block/chocolate_bar_mould_blockstates_blockstate_0.json",
"src/main/resources/assets/assortedcuisine/models/block/chocolate_bar_mould_blockstates_blockstate_1.json"
]
},
"path": "~/Candy"
}
],
"variable_elements": [
Expand Down Expand Up @@ -2505,8 +2604,8 @@
"item.assortedcuisine.slurm_soda": "Slurm",
"item.assortedcuisine.bread_slice": "Bread Slice",
"item.assortedcuisine.cheese_music_disc.desc": "sisthek - CHEESE",
"item.assortedcuisine.hot_chocolate_milk": "Hot Chocolate Milk",
"item.assortedcuisine.cocoa_soda": "Cocoa Drink",
"item.assortedcuisine.hot_chocolate_milk": "Hot Chocolate Milk",
"item.assortedcuisine.golden_apple_soda": "Golden Apple Soda",
"advancements.cheese_music_disc_advancement.descr": "Acquire sisthek\u0027s CHEESE music disc by producing ridiculous amounts of cheese.",
"item.assortedcuisine.mr_cheese_item": "MrCheeseItem",
Expand All @@ -2516,6 +2615,7 @@
"item.assortedcuisine.carbon_dioxide_cylinder": "Empty Co² Cylinder",
"block.assortedcuisine.melon_pie": "Melon Pie",
"block.assortedcuisine.chocolate_pie": "Chocolate Pie",
"item.assortedcuisine.chocolate_bar": "Chocolate Bar",
"item.assortedcuisine.sugar_sweets": "Sugar Sweets",
"item.assortedcuisine.spiked_pumpkin_soda": "Spiked Pumpkin Soda",
"item.assortedcuisine.chocolate_milk": "Chocolate Milk",
Expand Down
53 changes: 53 additions & 0 deletions elements/ChocolateBar.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"_fv": 57,
"_type": "item",
"definition": {
"renderType": 0,
"texture": "debug",
"customModelName": "Normal",
"customProperties": {},
"states": [],
"name": "Chocolate Bar",
"rarity": "COMMON",
"creativeTab": {
"value": "CUSTOM:AssortedCuisine"
},
"stackSize": 64,
"enchantability": 0,
"useDuration": 32,
"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
},
"guiBoundTo": "<NONE>",
"inventorySize": 9,
"inventoryStackSize": 64,
"enableRanged": false,
"shootConstantly": false,
"projectile": {
"value": "Arrow"
},
"isFood": true,
"nutritionalValue": 3,
"saturation": 0.8,
"eatResultItem": {
"value": ""
},
"isMeat": false,
"isAlwaysEdible": false,
"animation": "eat"
}
}
10 changes: 8 additions & 2 deletions elements/ChocolateBarMould.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@
"unbreakable": false,
"breakHarvestLevel": 1,
"isBonemealable": false,
"hasInventory": false,
"hasInventory": true,
"guiBoundTo": "<NONE>",
"openGUIOnRightClick": false,
"inventorySize": 9,
"inventorySize": 0,
"inventoryStackSize": 64,
"inventoryDropWhenDestroyed": true,
"inventoryComparatorPower": true,
Expand All @@ -119,6 +119,12 @@
"isFluidTank": false,
"fluidCapacity": 8000,
"fluidRestrictions": [],
"onRightClicked": {
"name": "ChocolateBarMouldRightClicked"
},
"onTickUpdate": {
"name": "ChocolateBarMouldUpdateTick"
},
"generateFeature": false,
"restrictionBiomes": [],
"blocksToReplace": [
Expand Down
55 changes: 55 additions & 0 deletions elements/ChocolateBarMouldBlockstates.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"_fv": 57,
"_type": "blockstates",
"definition": {
"block": "ChocolateBarMould",
"blockstateList": [
{
"texture": "chocolate_bar_mould_top_filled",
"textureTop": "",
"textureLeft": "",
"textureFront": "",
"textureRight": "",
"textureBack": "",
"particleTexture": "",
"renderType": 2,
"customModelName": "chocolate_bar_mould:filled",
"luminance": 0,
"boundingBoxes": [
{
"mx": 1.0,
"my": 0.0,
"mz": 1.0,
"Mx": 15.0,
"My": 8.0,
"Mz": 15.0,
"subtract": false
}
]
},
{
"texture": "chocolate_bar_mould_top_finished",
"textureTop": "",
"textureLeft": "",
"textureFront": "",
"textureRight": "",
"textureBack": "",
"particleTexture": "",
"renderType": 2,
"customModelName": "chocolate_bar_mould:finished",
"luminance": 0,
"boundingBoxes": [
{
"mx": 1.0,
"my": 0.0,
"mz": 1.0,
"Mx": 15.0,
"My": 8.0,
"Mz": 15.0,
"subtract": false
}
]
}
]
}
}
7 changes: 7 additions & 0 deletions elements/ChocolateBarMouldRightClicked.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"_fv": 57,
"_type": "procedure",
"definition": {
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_trigger\" deletable=\"false\" x=\"40\" y=\"34\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><mutation elseif=\"1\" else=\"1\"></mutation><value name=\"IF0\"><block type=\"math_binary_ops\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"block_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">cuisine_milktimer</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">4</field></block></value></block></value><statement name=\"DO0\"><block type=\"controls_repeat_ext\"><value name=\"TIMES\"><block type=\"math_number\"><field name=\"NUM\">2</field></block></value><statement name=\"DO\"><block type=\"spawn_gem\"><field name=\"despawn\">TRUE</field><value name=\"block\"><block type=\"mcitem_all\"><field name=\"value\">CUSTOM:ChocolateBar</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value><value name=\"pickUpDelay\"><block type=\"math_number\"><field name=\"NUM\">10</field></block></value></block></statement><next><block type=\"block_nbt_num_set\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">cuisine_milktimer</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value><value name=\"tagValue\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value><next><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_number\"><field name=\"NUM\">0</field></block></value></block></next></block></next></block></statement><value name=\"IF1\"><block type=\"compare_mcitems\"><value name=\"a\"><block type=\"entity_iteminhand\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value><value name=\"b\"><block type=\"mcitem_all\"><field name=\"value\">CUSTOM:HotChocolateMilk</field></block></value></block></value><statement name=\"DO1\"><block type=\"controls_if\"><mutation else=\"1\"></mutation><value name=\"IF0\"><block type=\"math_binary_ops\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"block_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">cuisine_milktimer</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_negate\"><value name=\"BOOL\"><block type=\"entity_checkgamemode\"><field name=\"gamemode\">CREATIVE</field><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"entity_set_mainhand_item\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"amount\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"item\"><block type=\"mcitem_all\"><field name=\"value\">Items.BOWL</field></block></value></block></statement><next><block type=\"block_nbt_num_set\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">cuisine_milktimer</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value><value name=\"tagValue\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><next><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_number\"><field name=\"NUM\">1</field></block></value><next><block type=\"play_sound\"><field name=\"sound\">item.bucket.empty</field><field name=\"soundcategory\">ambient</field><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"pitch\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"entity_send_chat\"><value name=\"text\"><block type=\"text_join\"><mutation items=\"3\"></mutation><value name=\"ADD0\"><block type=\"text\"><field name=\"TEXT\">The mould is already full! Level </field></block></value><value name=\"ADD1\"><block type=\"block_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">cuisine_milktimer</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value></block></value><value name=\"ADD2\"><block type=\"text\"><field name=\"TEXT\">/4.0</field></block></value></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"actbar\"><block type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></block></value></block></statement></block></statement><statement name=\"ELSE\"><block type=\"entity_send_chat\"><value name=\"text\"><block type=\"text_join\"><mutation items=\"3\"></mutation><value name=\"ADD0\"><block type=\"text\"><field name=\"TEXT\">Level </field></block></value><value name=\"ADD1\"><block type=\"block_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">cuisine_milktimer</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value></block></value><value name=\"ADD2\"><block type=\"text\"><field name=\"TEXT\">/4.0</field></block></value></block></value><value name=\"entity\"><block type=\"entity_from_deps\"></block></value><value name=\"actbar\"><block type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></block></value></block></statement></block></next></block></xml>"
}
}
7 changes: 7 additions & 0 deletions elements/ChocolateBarMouldUpdateTick.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"_fv": 57,
"_type": "procedure",
"definition": {
"procedurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"event_trigger\" deletable=\"false\" x=\"60\" y=\"64\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"math_binary_ops\"><field name=\"OP\">GTE</field><value name=\"A\"><block type=\"block_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">cuisine_milktimer</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_binary_ops\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"world_data_logic_getgamerule\"><field name=\"gamerulesboolean\">CUSTOM:ButterDebugTickMessage</field></block></value><value name=\"B\"><block type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></block></value></block></value><statement name=\"DO0\"><block type=\"world_send_chat\"><value name=\"text\"><block type=\"text\"><field name=\"TEXT\">§7§oChocolate Bar Mould Tick</field></block></value><next><block type=\"spawn_particle_multi\"><field name=\"particle\">CLOUD</field><value name=\"count\"><block type=\"math_number\"><field name=\"NUM\">5</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"coord_y\"></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></value><value name=\"z\"><block type=\"coord_z\"></block></value><value name=\"dx\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"dy\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"dz\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value><value name=\"speed\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></next></block></statement><next><block type=\"block_nbt_num_set\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">cuisine_milktimer</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value><value name=\"tagValue\"><block type=\"math_dual_ops\"><field name=\"OP\">ADD</field><value name=\"A\"><block type=\"block_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">cuisine_milktimer</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">1</field></block></value></block></value><next><block type=\"controls_if\"><mutation elseif=\"1\"></mutation><value name=\"IF0\"><block type=\"math_binary_ops\"><field name=\"OP\">LTE</field><value name=\"A\"><block type=\"block_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">cuisine_milktimer</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">3</field></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_number\"><field name=\"NUM\">1</field></block></value></block></statement><value name=\"IF1\"><block type=\"math_binary_ops\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"block_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">cuisine_milktimer</field></block></value><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">4</field></block></value></block></value><statement name=\"DO1\"><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_number\"><field name=\"NUM\">2</field></block></value></block></statement></block></next></block></next></block></statement></block></next></block></xml>"
}
}
Loading

0 comments on commit 481b0c2

Please sign in to comment.