Skip to content

Commit

Permalink
Add coin loot & recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
WenXin20 committed Sep 4, 2024
1 parent 08509b2 commit 00bb672
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/main/resources/assets/marioverse/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,11 @@

"menu.marioverse.warp_pipe": "Warp Pipe",

"subtitles.marioverse.block.pipes_linked": "Pipes linked",
"subtitles.marioverse.block.pipe_closes": "Pipe closes",
"subtitles.marioverse.block.pipe_opens": "Pipe opens",
"subtitles.marioverse.block.pipe_warps": "Pipe warps",
"subtitles.marioverse.block.water_spout.break": "Water Spout shrinks",
"subtitles.marioverse.block.water_spout.fall": "Water Spout falls",
"subtitles.marioverse.block.water_spout.hit": "Water Spout splashes",
"subtitles.marioverse.block.water_spout.place": "Water Spout grows",
"subtitles.marioverse.block.water_spout.step": "Footsteps",
"subtitles.marioverse.item.wrench_bound": "Wrench bound",

"block.marioverse.black_warp_pipe": "Black Warp Pipe",
"block.marioverse.blue_warp_pipe": "Blue Warp Pipe",
"block.marioverse.brown_warp_pipe": "Brown Warp Pipe",
"block.marioverse.clear_warp_pipe": "Clear Warp Pipe",
"block.marioverse.coin": "Coin",
"block.marioverse.cyan_warp_pipe": "Cyan Warp Pipe",
"block.marioverse.gray_warp_pipe": "Gray Warp Pipe",
"block.marioverse.green_warp_pipe": "Green Warp Pipe",
Expand Down Expand Up @@ -47,6 +37,17 @@
"item.marioverse.pipe_wrench.tooltip.right_click": "Right-click: Opens pipe GUI",
"item.marioverse.pipe_wrench.tooltip.shift_right_click": "Shift-right-click: Binds pipes",

"subtitles.marioverse.block.pipes_linked": "Pipes linked",
"subtitles.marioverse.block.pipe_closes": "Pipe closes",
"subtitles.marioverse.block.pipe_opens": "Pipe opens",
"subtitles.marioverse.block.pipe_warps": "Pipe warps",
"subtitles.marioverse.block.water_spout.break": "Water Spout shrinks",
"subtitles.marioverse.block.water_spout.fall": "Water Spout falls",
"subtitles.marioverse.block.water_spout.hit": "Water Spout splashes",
"subtitles.marioverse.block.water_spout.place": "Water Spout grows",
"subtitles.marioverse.block.water_spout.step": "Footsteps",
"subtitles.marioverse.item.wrench_bound": "Wrench bound",

"menu.marioverse.warp_pipe.close_button": "",
"menu.marioverse.warp_pipe.close_button.tooltip": "Close Pipe",
"menu.marioverse.warp_pipe.open_button.tooltip": "Open Pipe",
Expand Down
20 changes: 20 additions & 0 deletions src/main/resources/data/marioverse/loot_table/blocks/coin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "marioverse:coin"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
21 changes: 21 additions & 0 deletions src/main/resources/data/marioverse/recipe/coin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"group": "marioverse:warp_pipes",
"pattern": [
"NNN",
"NGN",
"NNN"
],
"key": {
"G": {
"tag": "c:ingots/gold"
},
"N": {
"tag": "c:nuggets/gold"
}
},
"result": {
"id": "marioverse:coin",
"count": 1
}
}

0 comments on commit 00bb672

Please sign in to comment.