Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugman76 committed Dec 8, 2024
1 parent 169752d commit 6577a7f
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,6 @@ gradle-app.setting
run/

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar
!gradle-wrapper.jar

/src/main/resources/data/*/plasmid/game/test.json
2 changes: 1 addition & 1 deletion src/main/java/com/hugman/uhc/game/ModuleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private void tick(UHCPlayerManager playerManager) {
for (ReplaceStackModifier piece : this.modifiers(ModifierType.REPLACE_STACK)) {
int slot = player.getInventory().getSlotWithStack(piece.target());
if(slot != -1) {
player.getInventory().setStack(slot, piece.replacement());
player.getInventory().setStack(slot, piece.replacement().copy());
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/data/doublerunner/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"module.doublerunner.potion_drops.description": "Some entities drop potions",
"module.doublerunner.timberman.description": "Trees get cut instantly and drop oak planks",
"module.doublerunner.better_tools_plus": "Better Tools+",
"module.doublerunner.better_tools_plus.description": "Wooden tools are replaced with iron tools",
"module.doublerunner.better_tools_plus.description": "Wooden tools are replaced with iron tools and diamond tools are enchanted with Efficiency III",

"module_description.doublerunner.zombies_drop_strength_potions": "Zombies drops potions of Strength",
"module_description.doublerunner.spiders_drop_poison_potions": "Spiders drops potions of Poison",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,62 @@
"replacement": {
"id": "minecraft:iron_hoe"
}
},
{
"type": "uhc:replace_stack",
"target": {
"id": "minecraft:diamond_pickaxe"
},
"replacement": {
"id": "minecraft:diamond_pickaxe",
"components": {
"minecraft:enchantments": {
"minecraft:efficiency": 3
}
}
}
},
{
"type": "uhc:replace_stack",
"target": {
"id": "minecraft:diamond_axe"
},
"replacement": {
"id": "minecraft:diamond_axe",
"components": {
"minecraft:enchantments": {
"minecraft:efficiency": 3
}
}
}
},
{
"type": "uhc:replace_stack",
"target": {
"id": "minecraft:diamond_shovel"
},
"replacement": {
"id": "minecraft:diamond_shovel",
"components": {
"minecraft:enchantments": {
"minecraft:efficiency": 3
}
}
}
},
{
"type": "uhc:replace_stack",
"target": {
"id": "minecraft:diamond_hoe"
},
"replacement": {
"id": "minecraft:diamond_hoe",
"components": {
"minecraft:enchantments": {
"minecraft:efficiency": 3
}
}
}
}
]
}
25 changes: 25 additions & 0 deletions src/main/resources/data/uhcrun/loot_table/gold_ingots/four.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:gold_ingot",
"functions": [
{
"function": "minecraft:set_count",
"count": 3
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
}
]
}
]
}
]
}

0 comments on commit 6577a7f

Please sign in to comment.