Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Fixed the `forge:storage_blocks` tag

* Fix recipes

* Adjust structure gen

* Structure Tweaks

* Tweak structure

* Swing hand when used
  • Loading branch information
WenXin20 authored Jan 24, 2022
1 parent 37e064a commit 56bcaea
Show file tree
Hide file tree
Showing 37 changed files with 97 additions and 76 deletions.
4 changes: 4 additions & 0 deletions src/main/java/pokecube/adventures/items/Linker.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public boolean setLinkedPos(final GlobalPos pos, final Entity user)
final Player player = (Player) user;
player.displayClientMessage(new TranslatableComponent("item.pokecube_adventures.linker.unset"),
true);
player.swing(player.getUsedItemHand());
}
else
{
Expand All @@ -90,6 +91,7 @@ public boolean setLinkedPos(final GlobalPos pos, final Entity user)
final Player player = (Player) user;
player.displayClientMessage(new TranslatableComponent("item.pokecube_adventures.linker.set"),
true);
player.swing(player.getUsedItemHand());
}
else
{
Expand All @@ -106,6 +108,7 @@ public boolean setLinkedPos(final GlobalPos pos, final Entity user)
final Player player = (Player) user;
player.displayClientMessage(new TranslatableComponent("item.pokecube_adventures.linker.set"),
true);
player.swing(player.getUsedItemHand());
}
else
{
Expand Down Expand Up @@ -152,6 +155,7 @@ else if (TrainerCaps.getHasPokemobs(target) != null)
ai.getPrimaryTask().setPos(pos.pos().above());
playerIn.displayClientMessage(new TranslatableComponent("item.pokecube_adventures.linked.mob",
target.getDisplayName(), bpos.getX(), bpos.getY(), bpos.getZ()), true);
playerIn.swing(playerIn.getUsedItemHand());
return true;
}
else playerIn.displayClientMessage(new TranslatableComponent("item.pokecube_adventures.linked.mob.fail"),
Expand Down
14 changes: 7 additions & 7 deletions src/main/resources/data/forge/tags/blocks/storage_blocks.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"replace": false,
"values": [
"#forge:storage_block/aquamarine",
"#forge:storage_block/cosmic_dust",
"#forge:storage_block/ruby",
"#forge:storage_block/sapphire",
"#forge:storage_block/spectrum",
"#forge:storage_block/fractal",
"#forge:storage_block/unrefined_aquamarine"
"#forge:storage_blocks/aquamarine",
"#forge:storage_blocks/cosmic",
"#forge:storage_blocks/fractal",
"#forge:storage_blocks/ruby",
"#forge:storage_blocks/sapphire",
"#forge:storage_blocks/spectrum",
"#forge:storage_blocks/unrefined_aquamarine"
]
}
14 changes: 7 additions & 7 deletions src/main/resources/data/forge/tags/items/storage_blocks.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"replace": false,
"values": [
"#forge:storage_block/aquamarine",
"#forge:storage_block/cosmic_dust",
"#forge:storage_block/ruby",
"#forge:storage_block/sapphire",
"#forge:storage_block/spectrum",
"#forge:storage_block/fractal",
"#forge:storage_block/unrefined_aquamarine"
"#forge:storage_blocks/aquamarine",
"#forge:storage_blocks/cosmic",
"#forge:storage_blocks/fractal",
"#forge:storage_blocks/ruby",
"#forge:storage_blocks/sapphire",
"#forge:storage_blocks/spectrum",
"#forge:storage_blocks/unrefined_aquamarine"
]
}

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/resources/data/pokecube/recipes/pc_base.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"tag": "forge:dusts/redstone"
},
"B": {
"tag": "forge:storage_block/iron"
"tag": "forge:storage_blocks/iron"
},
"I": {
"tag": "forge:ingots/iron"
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/data/pokecube/recipes/pc_top.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"tag": "forge:dusts/redstone"
},
"B": {
"tag": "forge:storage_block/iron"
"tag": "forge:storage_blocks/iron"
},
"G": {
"tag": "forge:glass"
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"item": "pokecube:trade_machine"
},
"S": {
"tag": "forge:storage_block/iron"
"tag": "forge:storage_blocks/iron"
},
"I": {
"tag": "forge:ingots/iron"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"item": "pokecube:trade_machine"
},
"G": {
"tag": "forge:storage_block/gold"
"tag": "forge:storage_blocks/gold"
},
"I": {
"tag": "forge:ingots/gold"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"item": "pokecube:trade_machine"
},
"S": {
"tag": "forge:storage_block/iron"
"tag": "forge:storage_blocks/iron"
},
"I": {
"tag": "forge:ingots/iron"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"item": "pokecube:trade_machine"
},
"S": {
"tag": "forge:storage_block/iron"
"tag": "forge:storage_blocks/iron"
},
"I": {
"tag": "forge:ingots/iron"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"item": "pokecube:trade_machine"
},
"S": {
"tag": "forge:storage_block/diamond"
"tag": "forge:storage_blocks/diamond"
},
"I": {
"tag": "forge:ingots/gold"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"data": 0
},
"B": {
"tag": "forge:storage_block/redstone"
"tag": "forge:storage_blocks/redstone"
}
},
"result": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"item": "pokecube_adventures:cloner"
},
"S": {
"tag": "forge:storage_block/diamond"
"tag": "forge:storage_blocks/diamond"
},
"I": {
"item": "minecraft:nether_star"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"item": "minecraft:ender_eye"
},
"I": {
"tag": "forge:storage_block/iron"
"tag": "forge:storage_blocks/iron"
}
},
"result": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"item": "pokecube_legends:grayorb"
},
"R": {
"tag": "forge:storage_block/sapphire"
"tag": "forge:storage_blocks/sapphire"
}
},
"result": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"item": "pokecube_legends:grayorb"
},
"R": {
"tag": "forge:storage_block/emerald"
"tag": "forge:storage_blocks/emerald"
}
},
"result": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"item": "pokecube_legends:legendaryorb"
},
"A": {
"tag": "forge:storage_block/gold"
"tag": "forge:storage_blocks/gold"
},
"H": {
"item": "minecraft:nether_star"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
],
"key": {
"R": {
"tag": "forge:storage_block/lapis"
"tag": "forge:storage_blocks/lapis"
},
"A": {
"tag": "forge:storage_block/redstone"
"tag": "forge:storage_blocks/redstone"
},
"C": {
"item": "minecraft:packed_ice"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"tag": "forge:obsidian"
},
"A": {
"tag": "forge:storage_block/ruby"
"tag": "forge:storage_blocks/ruby"
},
"C": {
"item": "minecraft:magma_block"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
],
"key": {
"R": {
"tag": "forge:storage_block/redstone"
"tag": "forge:storage_blocks/redstone"
},
"A": {
"tag": "forge:storage_block/ruby"
"tag": "forge:storage_blocks/ruby"
},
"S": {
"tag": "forge:storage_block/sapphire"
"tag": "forge:storage_blocks/sapphire"
},
"C": {
"item": "minecraft:yellow_terracotta"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
],
"key": {
"R": {
"tag": "forge:storage_block/emerald"
"tag": "forge:storage_blocks/emerald"
},
"A": {
"tag": "forge:storage_block/redstone"
"tag": "forge:storage_blocks/redstone"
},
"C": {
"item": "minecraft:end_stone_bricks"
},
"G": {
"tag": "forge:storage_block/gold"
"tag": "forge:storage_blocks/gold"
}
},
"result": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"item": "minecraft:terracotta"
},
"A": {
"tag": "forge:storage_block/redstone"
"tag": "forge:storage_blocks/redstone"
},
"R": {
"tag": "forge:storage_block/gold"
"tag": "forge:storage_blocks/gold"
}
},
"result": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"item": "minecraft:magma_block"
},
"A": {
"tag": "forge:storage_block/redstone"
"tag": "forge:storage_blocks/redstone"
},
"C": {
"tag": "forge:storage_block/iron"
"tag": "forge:storage_blocks/iron"
}
},
"result": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"key": {
"0": {
"tag": "forge:storage_block/gold"
"tag": "forge:storage_blocks/gold"
},
"R": {
"tag": "forge:ingots/gold"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"key": {
"4": {
"tag": "forge:storage_block/gold"
"tag": "forge:storage_blocks/gold"
},
"2": {
"item": "pokecube_legends:grayorb"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"key": {
"G": {
"tag": "forge:storage_block/gold"
"tag": "forge:storage_blocks/gold"
},
"A": {
"item": "minecraft:stone_button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"item": "pokecube_legends:grayorb"
},
"R": {
"tag": "forge:storage_block/ruby"
"tag": "forge:storage_blocks/ruby"
}
},
"result": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"key": {
"A": {
"tag": "forge:storage_block/crystal"
"tag": "forge:storage_blocks/aquamarine"
},
"Q": {
"item": "pokecube_legends:blueorb"
Expand Down
Loading

0 comments on commit 56bcaea

Please sign in to comment.