mirror of
https://github.com/nimsolated/Nims-Random-BS.git
synced 2026-04-02 02:05:20 -07:00
feature: add shipping label for mailbox
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
"hasInventory": true,
|
||||
"guiBoundTo": "MailboxGUI",
|
||||
"openGUIOnRightClick": true,
|
||||
"inventorySize": 18,
|
||||
"inventorySize": 100,
|
||||
"inventoryStackSize": 64,
|
||||
"inventoryDropWhenDestroyed": true,
|
||||
"inventoryComparatorPower": true,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"_type": "gui",
|
||||
"definition": {
|
||||
"type": 1,
|
||||
"width": 360,
|
||||
"width": 240,
|
||||
"height": 180,
|
||||
"inventoryOffsetX": 0,
|
||||
"inventoryOffsetY": 0,
|
||||
@@ -330,90 +330,6 @@
|
||||
"locked": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "label",
|
||||
"data": {
|
||||
"name": "label_x",
|
||||
"text": {
|
||||
"fixedValue": "X:"
|
||||
},
|
||||
"color": {
|
||||
"value": -12829636,
|
||||
"falpha": 0.0
|
||||
},
|
||||
"x": 258,
|
||||
"y": 49,
|
||||
"locked": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "textfield",
|
||||
"data": {
|
||||
"placeholder": "0",
|
||||
"name": "outbox_x_coord",
|
||||
"width": 120,
|
||||
"height": 20,
|
||||
"x": 267,
|
||||
"y": 44,
|
||||
"locked": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "label",
|
||||
"data": {
|
||||
"name": "label_y",
|
||||
"text": {
|
||||
"fixedValue": "Y:"
|
||||
},
|
||||
"color": {
|
||||
"value": -12829636,
|
||||
"falpha": 0.0
|
||||
},
|
||||
"x": 258,
|
||||
"y": 71,
|
||||
"locked": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "textfield",
|
||||
"data": {
|
||||
"placeholder": "0",
|
||||
"name": "outbox_y_coord",
|
||||
"width": 120,
|
||||
"height": 20,
|
||||
"x": 267,
|
||||
"y": 67,
|
||||
"locked": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "label",
|
||||
"data": {
|
||||
"name": "label_z",
|
||||
"text": {
|
||||
"fixedValue": "Z:"
|
||||
},
|
||||
"color": {
|
||||
"value": -12829636,
|
||||
"falpha": 0.0
|
||||
},
|
||||
"x": 258,
|
||||
"y": 94,
|
||||
"locked": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "textfield",
|
||||
"data": {
|
||||
"placeholder": "0",
|
||||
"name": "outbox_z_coord",
|
||||
"width": 120,
|
||||
"height": 20,
|
||||
"x": 267,
|
||||
"y": 89,
|
||||
"locked": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "button",
|
||||
"data": {
|
||||
@@ -425,8 +341,32 @@
|
||||
},
|
||||
"width": 46,
|
||||
"height": 20,
|
||||
"x": 303,
|
||||
"y": 116,
|
||||
"x": 263,
|
||||
"y": 85,
|
||||
"locked": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "inputslot",
|
||||
"data": {
|
||||
"inputLimit": {
|
||||
"value": "CUSTOM:ShippingLabel"
|
||||
},
|
||||
"disablePlacement": {
|
||||
"fixedValue": false,
|
||||
"name": "MailboxSlot99ShippingLabelInsertionCondition"
|
||||
},
|
||||
"color": {
|
||||
"value": -16777216,
|
||||
"falpha": 0.0
|
||||
},
|
||||
"id": 99,
|
||||
"disablePickup": {
|
||||
"fixedValue": false
|
||||
},
|
||||
"dropItemsWhenNotBound": false,
|
||||
"x": 276,
|
||||
"y": 58,
|
||||
"locked": false
|
||||
}
|
||||
}
|
||||
|
||||
48
elements/MailboxRecipe.mod.json
Normal file
48
elements/MailboxRecipe.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": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": "Blocks.IRON_BLOCK"
|
||||
},
|
||||
{
|
||||
"value": "Blocks.LEVER"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": "Items.STICK"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
}
|
||||
],
|
||||
"recipeReturnStack": {
|
||||
"value": "CUSTOM:Mailbox"
|
||||
},
|
||||
"name": "mailbox_recipe",
|
||||
"namespace": "mod"
|
||||
}
|
||||
}
|
||||
@@ -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=\"178\" y=\"147\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"logic_binary_ops\" inline=\"false\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"compare_mcitems\"><value name=\"a\"><block type=\"itemstack_to_mcitem\"></block></value><value name=\"b\"><block type=\"mcitem_all\"><field name=\"value\">CUSTOM:ShippingLabel</field></block></value></block></value><value name=\"B\"><block type=\"item_nbt_logic_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">connected</field></block></value><value name=\"item\"><block type=\"itemstack_to_mcitem\"></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"return_logic\"><value name=\"return\"><block type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></block></value></block></statement><next><block type=\"return_logic\"><value name=\"return\"><block type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></block></value></block></next></block></next></block></xml>"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
68
elements/ShippingLabel.mod.json
Normal file
68
elements/ShippingLabel.mod.json
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"_fv": 73,
|
||||
"_type": "item",
|
||||
"definition": {
|
||||
"renderType": 0,
|
||||
"texture": "shipping_label",
|
||||
"customModelName": "Normal",
|
||||
"customProperties": {},
|
||||
"states": [],
|
||||
"name": "Shipping Label",
|
||||
"rarity": "COMMON",
|
||||
"creativeTabs": [
|
||||
{
|
||||
"value": "TOOLS"
|
||||
}
|
||||
],
|
||||
"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": [],
|
||||
"name": "ShippingLabelSpecialInformation"
|
||||
},
|
||||
"glowCondition": {
|
||||
"fixedValue": false,
|
||||
"name": "ShippingLabelHasItemGlowingEffect"
|
||||
},
|
||||
"inventorySize": 9,
|
||||
"inventoryStackSize": 64,
|
||||
"onRightClickedOnBlock": {
|
||||
"name": "ShippingLabelRightclickedOnBlock"
|
||||
},
|
||||
"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
|
||||
}
|
||||
}
|
||||
7
elements/ShippingLabelHasItemGlowingEffect.mod.json
Normal file
7
elements/ShippingLabelHasItemGlowingEffect.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=\"item_nbt_logic_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">connected</field></block></value><value name=\"item\"><block type=\"itemstack_to_mcitem\"></block></value></block></value><statement name=\"DO0\"><block type=\"return_logic\"><value name=\"return\"><block type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></block></value></block></statement><next><block type=\"return_logic\"><value name=\"return\"><block type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></block></value></block></next></block></next></block></xml>"
|
||||
}
|
||||
}
|
||||
48
elements/ShippingLabelRecipe.mod.json
Normal file
48
elements/ShippingLabelRecipe.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.PAPER"
|
||||
},
|
||||
{
|
||||
"value": "Items.DYE#0"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
}
|
||||
],
|
||||
"recipeReturnStack": {
|
||||
"value": "CUSTOM:ShippingLabel"
|
||||
},
|
||||
"name": "shipping_label_recipe",
|
||||
"namespace": "mod"
|
||||
}
|
||||
}
|
||||
7
elements/ShippingLabelRightclickedOnBlock.mod.json
Normal file
7
elements/ShippingLabelRightclickedOnBlock.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=\"controls_if\"><value name=\"IF0\"><block type=\"logic_binary_ops\" inline=\"false\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"compare_mcblocks\"><value name=\"a\"><block type=\"blockstate_from_deps\"></block></value><value name=\"b\"><block type=\"mcitem_allblocks\"><field name=\"value\">CUSTOM:Mailbox</field></block></value></block></value><value name=\"B\"><block type=\"entity_issneaking\"><value name=\"entity\"><block type=\"entity_from_deps\"></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"item_nbt_num_set\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">connected_mailbox_x</field></block></value><value name=\"item\"><block type=\"itemstack_to_mcitem\"></block></value><value name=\"tagValue\"><block type=\"coord_x\"></block></value><next><block type=\"item_nbt_num_set\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">connected_mailbox_y</field></block></value><value name=\"item\"><block type=\"itemstack_to_mcitem\"></block></value><value name=\"tagValue\"><block type=\"coord_y\"></block></value><next><block type=\"item_nbt_num_set\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">connected_mailbox_z</field></block></value><value name=\"item\"><block type=\"itemstack_to_mcitem\"></block></value><value name=\"tagValue\"><block type=\"coord_z\"></block></value><next><block type=\"item_nbt_logic_set\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">connected</field></block></value><value name=\"item\"><block type=\"itemstack_to_mcitem\"></block></value><value name=\"tagValue\"><block type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></block></value><next><block type=\"play_sound\"><field name=\"sound\">entity.player.levelup</field><field name=\"soundcategory\">player</field><value name=\"x\"><block type=\"coord_x\"></block></value><value name=\"y\"><block type=\"coord_y\"></block></value><value name=\"z\"><block type=\"coord_z\"></block></value><value name=\"level\"><block type=\"math_number\"><field name=\"NUM\">0.75</field></block></value><value name=\"pitch\"><block type=\"math_random_number_between\"><value name=\"min\"><block type=\"math_number\"><field name=\"NUM\">0.95</field></block></value><value name=\"max\"><block type=\"math_number\"><field name=\"NUM\">1.05</field></block></value></block></value></block></next></block></next></block></next></block></next></block></statement></block></statement></block></next></block></xml>"
|
||||
}
|
||||
}
|
||||
7
elements/ShippingLabelSpecialInformation.mod.json
Normal file
7
elements/ShippingLabelSpecialInformation.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=\"240\" y=\"202\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><value name=\"IF0\"><block type=\"item_nbt_logic_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">connected</field></block></value><value name=\"item\"><block type=\"itemstack_to_mcitem\"></block></value></block></value><statement name=\"DO0\"><block type=\"return_string\"><value name=\"return\"><block type=\"text_join\"><mutation items=\"3\"></mutation><value name=\"ADD0\"><block type=\"text_join\"><mutation items=\"3\"></mutation><value name=\"ADD0\"><block type=\"text\"><field name=\"TEXT\">Dest. Mailbox X:</field></block></value><value name=\"ADD1\"><block type=\"item_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">connected_mailbox_x</field></block></value><value name=\"item\"><block type=\"itemstack_to_mcitem\"></block></value></block></value><value name=\"ADD2\"><block type=\"text_new_line\"></block></value></block></value><value name=\"ADD1\"><block type=\"text_join\"><mutation items=\"3\"></mutation><value name=\"ADD0\"><block type=\"text\"><field name=\"TEXT\">Dest. Mailbox Y:</field></block></value><value name=\"ADD1\"><block type=\"item_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">connected_mailbox_y</field></block></value><value name=\"item\"><block type=\"itemstack_to_mcitem\"></block></value></block></value><value name=\"ADD2\"><block type=\"text_new_line\"></block></value></block></value><value name=\"ADD2\"><block type=\"text_join\"><mutation items=\"3\"></mutation><value name=\"ADD0\"><block type=\"text\"><field name=\"TEXT\">Dest. Mailbox Z:</field></block></value><value name=\"ADD1\"><block type=\"item_nbt_num_get\"><value name=\"tagName\"><block type=\"text\"><field name=\"TEXT\">connected_mailbox_z</field></block></value><value name=\"item\"><block type=\"itemstack_to_mcitem\"></block></value></block></value><value name=\"ADD2\"><block type=\"text_new_line\"></block></value></block></value></block></value></block></statement><next><block type=\"return_string\"><value name=\"return\"><block type=\"text\"><field name=\"TEXT\">No assigned destination.</field></block></value></block></next></block></next></block></xml>"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user