Skip to content

Commit

Permalink
fix: unbreakable Flint and Steel gets cleared when used on Creeper (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco227 committed Jul 3, 2024
1 parent 5677797 commit 84ca3b2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
item replace entity @a[nbt={SelectedItem:{id:"minecraft:flint_and_steel",tag:{Damage:1,Permanent:1b}}}] weapon.mainhand with minecraft:flint_and_steel{Permanent:1b}
item replace entity @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:flint_and_steel",tag:{Damage:1,Permanent:1b}}]}] weapon.offhand with minecraft:flint_and_steel{Permanent:1b}
5 changes: 4 additions & 1 deletion Data_Pack/data/roguecraft/functions/tick/true_run.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,7 @@ execute if data storage roguecraft:master {end:1} run function custom_ender_drag
execute as @a[nbt={Dimension:"minecraft:the_end"},tag=!end] unless entity @a[tag=victory] run function roguecraft:enter_end

#stronghold location
execute as @a[scores={stronghold_location=1..}] run function roguecraft:trigger_commands/tell_stronghold with storage roguecraft:master Region
execute as @a[scores={stronghold_location=1..}] run function roguecraft:trigger_commands/tell_stronghold with storage roguecraft:master Region

#flint and steel auto-repair
execute if entity @a[scores={flint_and_steel=1}] run function roguecraft:tick/repair_flint_and_steel
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $execute if data entity @s EnderItems[{Slot:$(selectedslot)b,tag:{CustomModelDat
$execute as @s[scores={bow=1}] if data entity @s EnderItems[{Slot:$(selectedslot)b,tag:{CustomModelData:900007}}] run item replace entity @s container.$(selectedslot) with bow{Unbreakable:true}
$execute if data entity @s EnderItems[{Slot:$(selectedslot)b,tag:{CustomModelData:900007}}] run item modify entity @s container.$(selectedslot) roguecraft:enchant_bow
#flint and steel
$execute as @s[scores={flint_and_steel=1},tag=!garden] if data entity @s EnderItems[{Slot:$(selectedslot)b,tag:{CustomModelData:900010}}] run item replace entity @s container.$(selectedslot) with flint_and_steel{Unbreakable:true}
$execute as @s[scores={flint_and_steel=1},tag=!garden] if data entity @s EnderItems[{Slot:$(selectedslot)b,tag:{CustomModelData:900010}}] run item replace entity @s container.$(selectedslot) with flint_and_steel{Permanent:true}
#comp ass
$data modify storage roguecraft:master Region.selectedslot set value $(selectedslot)
$execute as @s[scores={compass=1},tag=!garden] if data entity @s EnderItems[{Slot:$(selectedslot)b,tag:{CustomModelData:900014}}] run function roguecraft:upgrades/compass with storage roguecraft:master Region
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ You can join the MonoCode's Discord server [here](https://discord.gg/d5FxfTYUqQ)
- Ability items not being unbreakable.
- [Compass not pointing to nether entry after killing the Wildfire when overworld chunks are unloaded](https://discord.com/channels/1114531442052059168/1257161216866910289).
- Gamemode auto-switching to adventure in the hub while in dev mode (by Pengu).
- [Unbreakable Flint and Steel gets cleared when used on a Creeper](https://discord.com/channels/1114531442052059168/1252575711663755375)
## Additions
- French Translation
- Recipes for smelting/blasting Raw Copper Block, Raw Iron Block and Raw Gold Block.
Expand Down

0 comments on commit 84ca3b2

Please sign in to comment.