-
-
Notifications
You must be signed in to change notification settings - Fork 64
More 1.21.9 Feature Updates #1168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e66013f
9187132
274322e
3bd4477
b3a8f32
b5ba8d2
e51542d
0d76418
7154424
fcf699c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # @s = player holding an Audere tool | ||
| # at @s | ||
| # run from active_tool | ||
|
|
||
| scoreboard players operation $tool_max_damage gm4_ml_data -= $tool_current_damage gm4_ml_data | ||
|
|
||
| execute if score $tool_max_damage gm4_ml_data matches 52..139 run effect give @s minecraft:haste 2 0 | ||
| execute if score $tool_max_damage gm4_ml_data matches 20..51 run effect give @s minecraft:haste 2 1 | ||
| execute if score $tool_max_damage gm4_ml_data matches 8..19 run effect give @s minecraft:haste 2 2 | ||
| execute if score $tool_max_damage gm4_ml_data matches ..7 run effect give @s minecraft:haste 2 3 |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Check item in offhand to shoot | ||
| # @s = player using the crossbow | ||
| # at arrow | ||
| # run from shoot/any_arrow | ||
|
|
||
| # tripwire | ||
| execute if entity @s[gamemode=!adventure,predicate=gm4_crossbow_cartridges:items/string,x_rotation=-15..15] align xyz positioned ~0.5 ~ ~0.5 run function gm4_crossbow_cartridges:cables/shoot_arrow | ||
|
|
||
| # bucket with fish/axolotl | ||
| execute if entity @s[tag=!gm4_cb_use,predicate=gm4_crossbow_cartridges:items/bucket] run function gm4_crossbow_cartridges:projectile/bucket | ||
|
|
||
| # torch | ||
| execute if entity @s[tag=!gm4_cb_use,gamemode=!adventure,predicate=gm4_crossbow_cartridges:items/torch] run function gm4_crossbow_cartridges:projectile/torch | ||
| execute if entity @s[tag=!gm4_cb_use,gamemode=!adventure,predicate=gm4_crossbow_cartridges:items/redstone_torch] run function gm4_crossbow_cartridges:projectile/redstone_torch | ||
| execute if entity @s[tag=!gm4_cb_use,gamemode=!adventure,predicate=gm4_crossbow_cartridges:items/soul_torch] run function gm4_crossbow_cartridges:projectile/soul_torch | ||
|
|
||
| # potions | ||
| execute if entity @s[tag=!gm4_cb_use,predicate=gm4_crossbow_cartridges:items/potions] run function gm4_crossbow_cartridges:projectile/potions | ||
|
|
||
| # fireball | ||
| execute if entity @s[tag=!gm4_cb_use,gamemode=!adventure,predicate=gm4_crossbow_cartridges:items/fire_charge] run function gm4_crossbow_cartridges:projectile/fireball | ||
|
|
||
| # wind charge | ||
| execute if entity @s[tag=!gm4_cb_use,gamemode=!adventure,predicate=gm4_crossbow_cartridges:items/wind_charge] run function gm4_crossbow_cartridges:projectile/wind_charge | ||
|
|
||
| # tnt | ||
| execute if entity @s[tag=!gm4_cb_use,gamemode=!adventure,predicate=gm4_crossbow_cartridges:items/tnt] run function gm4_crossbow_cartridges:projectile/tnt | ||
|
|
||
| # beehive | ||
| execute if entity @s[tag=!gm4_cb_use,gamemode=!adventure,predicate=gm4_crossbow_cartridges:items/beehive] run function gm4_crossbow_cartridges:projectile/beehive | ||
|
|
||
| tag @s remove gm4_cb_use | ||
| data remove storage gm4_crossbow_cartridges:temp projectile |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Check blocks, to place or drop copper torch | ||
| # @s = arrow with tag gm4_cb_ctorch, in a block | ||
| # at @s | ||
| # run from projectile/copper_torch/loop | ||
|
|
||
| # EMPTY TO AVOID ERRORS |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Place copper torch on a valid adjacent block | ||
| # @s = arrow with tag gm4_cb_ctorch, in a block | ||
| # at @s | ||
| # run from projectile/copper_torch/check | ||
|
|
||
| # EMPTY TO AVOID ERRORS |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "condition": "minecraft:entity_properties", | ||
| "entity": "this", | ||
| "predicate": { | ||
| "equipment": { | ||
| "offhand": { | ||
| "items": [] | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Shoot copper torch | ||
| # @s = player using the crossbow | ||
| # at arrow | ||
| # run from check_projectile and projectile/copper_torch | ||
|
|
||
| tag @s add gm4_cb_use | ||
|
|
||
| # add tag to arrow | ||
| tag @e[tag=gm4_cb_arrow,distance=..1,sort=nearest,limit=1] add gm4_cb_ctorch | ||
|
|
||
| # add fire to arrow | ||
| data merge entity @e[tag=gm4_cb_arrow,tag=gm4_cb_ctorch,distance=..1,sort=nearest,limit=1] {Fire:2000s} | ||
| tag @e[tag=gm4_cb_arrow,tag=gm4_cb_ctorch,distance=..1,sort=nearest,limit=1] remove gm4_cb_arrow | ||
|
|
||
| # clear copper torch from player | ||
| item modify entity @s[gamemode=!creative] weapon.offhand gm4_crossbow_cartridges:remove_item | ||
|
|
||
| # repeat | ||
| execute if entity @e[tag=gm4_cb_arrow,distance=..1,sort=nearest,limit=1] if entity @s[predicate=gm4_crossbow_cartridges:items/copper_torch] run function gm4_crossbow_cartridges:projectile/copper_torch | ||
|
|
||
| # start loop to check if arrow is in ground | ||
| schedule function gm4_crossbow_cartridges:projectile/copper_torch/loop 4t |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Check blocks, to place or drop copper torch | ||
| # @s = arrow with tag gm4_cb_ctorch, in a block | ||
| # at @s | ||
| # run from projectile/copper_torch/loop | ||
|
|
||
| # summon torch item if torch already exists at this block | ||
| execute if block ~ ~ ~ #gm4_crossbow_cartridges:torch run loot spawn ~ ~ ~ loot minecraft:blocks/copper_torch | ||
|
|
||
| # place torch if possible | ||
| execute if block ~ ~ ~ #gm4:replaceable run function gm4_crossbow_cartridges:projectile/copper_torch/place | ||
|
|
||
| # summon torch item if placing torch failed | ||
| execute unless block ~ ~ ~ #gm4_crossbow_cartridges:torch run loot spawn ~ ~ ~ loot minecraft:blocks/copper_torch | ||
|
|
||
| # place block sound | ||
| playsound minecraft:block.wood.place block @a[distance=..15] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also for the other materials, but I feel like this shouldn't play if the torch didn't actually place
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh huh, yeah. Likely a change for a different PR though so I'll make an issue to track it |
||
|
|
||
| # kill arrow | ||
| kill @s | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Check arrow with tag gm4_cb_ctorch | ||
| # run from projectile/copper_torch | ||
| # scheduled by projectile/copper_torch/loop | ||
|
|
||
| execute as @e[tag=gm4_cb_ctorch,nbt={inGround:1b}] at @s run function gm4_crossbow_cartridges:projectile/copper_torch/check | ||
| execute if entity @e[tag=gm4_cb_ctorch,limit=1] run schedule function gm4_crossbow_cartridges:projectile/copper_torch/loop 4t |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Place copper torch on a valid adjacent block | ||
| # @s = arrow with tag gm4_cb_ctorch, in a block | ||
| # at @s | ||
| # run from projectile/copper_torch/check | ||
|
|
||
| execute positioned ~.05 ~ ~ if predicate gm4_crossbow_cartridges:check_block/east run setblock ~-.1 ~ ~ minecraft:copper_wall_torch[facing=west] | ||
| execute positioned ~ ~ ~.05 if predicate gm4_crossbow_cartridges:check_block/south run setblock ~ ~ ~-.1 minecraft:copper_wall_torch[facing=north] | ||
| execute positioned ~-.05 ~ ~ if predicate gm4_crossbow_cartridges:check_block/west run setblock ~.1 ~ ~ minecraft:copper_wall_torch[facing=east] | ||
| execute positioned ~ ~ ~-.05 if predicate gm4_crossbow_cartridges:check_block/north run setblock ~ ~ ~.1 minecraft:copper_wall_torch[facing=south] | ||
| execute positioned ~ ~-.05 ~ if predicate gm4_crossbow_cartridges:check_block/below run setblock ~ ~.1 ~ minecraft:copper_torch |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "condition": "minecraft:entity_properties", | ||
| "entity": "this", | ||
| "predicate": { | ||
| "equipment": { | ||
| "offhand": { | ||
| "items": [ | ||
| "minecraft:copper_torch" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean Audere is now reliant on Moneo? While that's technically fine while Moneo is in base Metallurgy it might cause problems if Moneo is ever updated / removed since it's unlikely this would be thought of then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, although this is a change from #1167 which is only mixed in here because I needed to handle overlays of the same files for copper tools. We can definitely move the
store_maximumfunction into the metallurgy namespace if needed though