-
-
Notifications
You must be signed in to change notification settings - Fork 61
Modernize (and Boltify) Liquid Tanks #1036
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
base: master
Are you sure you want to change the base?
Changes from all commits
d617f73
41abc22
e0e8f6a
abd686c
c6e79d2
df8225f
9c444af
25fd855
50fe505
a26932b
f0657a9
b556c7c
a10a69e
27b4070
59d24b3
26f778e
4b2c8f7
59f9440
bb28fe3
129a6a6
c3b4ff2
6c4e042
9b280a0
023c168
72ded30
25d3984
587393e
387d55a
5cb74c3
2c0a937
beda188
9f69685
da3b874
a9a8764
a268bf2
c76ebc3
9718b5a
67b9e93
3d4463e
a3d8d8f
cb2c3a7
13182d6
0de84bc
f2cfec3
804e4d5
dee8a6a
a4057ad
24abcb6
af714cf
e500fed
ae0d8fd
930d163
d782a3f
7af5a11
c8dea32
8001377
07b4feb
83c5a32
aa6997c
9d75637
0df5b11
6da7435
1a2bcf3
e134a2c
656c5a2
f76b0d2
44759c4
652c769
a39fa2f
20a07c1
669b9c5
50d500b
3f916fb
b9d3e62
dc8e2b7
f007931
ed08975
8d0c04d
52791aa
62254cd
7b64a4e
0ffd8fc
2246549
07594f4
4717845
a93d124
d8f64b1
593d151
fa45440
efec57f
cfdd1f2
56cfb8d
ded931b
3bb738e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,9 @@ version: 1.5.X | |
| data_pack: | ||
| load: . | ||
|
|
||
| require: | ||
| - bolt | ||
|
|
||
| pipeline: | ||
| - gm4.plugins.extend.module | ||
|
|
||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,40 @@ | ||
| # run from item_fill | ||
| # @s = liquid tank at @s | ||
|
|
||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:black_concrete_powder"}} run function gm4_cement_mixers:item_fill/black_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:blue_concrete_powder"}} run function gm4_cement_mixers:item_fill/blue_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:brown_concrete_powder"}} run function gm4_cement_mixers:item_fill/brown_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:cyan_concrete_powder"}} run function gm4_cement_mixers:item_fill/cyan_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:gray_concrete_powder"}} run function gm4_cement_mixers:item_fill/gray_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:green_concrete_powder"}} run function gm4_cement_mixers:item_fill/green_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:light_blue_concrete_powder"}} run function gm4_cement_mixers:item_fill/light_blue_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:light_gray_concrete_powder"}} run function gm4_cement_mixers:item_fill/light_gray_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:lime_concrete_powder"}} run function gm4_cement_mixers:item_fill/lime_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:magenta_concrete_powder"}} run function gm4_cement_mixers:item_fill/magenta_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:orange_concrete_powder"}} run function gm4_cement_mixers:item_fill/orange_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:pink_concrete_powder"}} run function gm4_cement_mixers:item_fill/pink_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:purple_concrete_powder"}} run function gm4_cement_mixers:item_fill/purple_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:red_concrete_powder"}} run function gm4_cement_mixers:item_fill/red_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:white_concrete_powder"}} run function gm4_cement_mixers:item_fill/white_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:yellow_concrete_powder"}} run function gm4_cement_mixers:item_fill/yellow_concrete | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:dirt"}} run function gm4_cement_mixers:item_fill/mud | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:coarse_dirt"}} run function gm4_cement_mixers:item_fill/mud | ||
| execute if data storage gm4_liquid_tanks:temp/tank {input_slot:{id:"minecraft:rooted_dirt"}} run function gm4_cement_mixers:item_fill/mud | ||
| concretes_colors = ( | ||
| "black", | ||
| "blue", | ||
| "brown", | ||
| "cyan", | ||
| "gray", | ||
| "green", | ||
| "light_blue", | ||
| "light_gray", | ||
| "lime", | ||
| "magenta", | ||
| "orange", | ||
| "pink", | ||
| "purple", | ||
| "red", | ||
| "white", | ||
| "yellow" | ||
| ) | ||
| for color in concretes_colors: | ||
| execute if items block ~ ~ ~ container.0 f"minecraft:{color}_concrete_powder" run function f"gm4_cement_mixers:item_fill/{color}_concrete": | ||
| scoreboard players set $item_value gm4_lt_value -1 | ||
| item replace entity 00344d47-0004-0004-0004-000f04ce104d weapon.mainhand with f"minecraft:{color}_concrete" | ||
| function gm4_liquid_tanks:smart_item_fill | ||
| tag @s add gm4_lt_fill | ||
|
|
||
| item_tag gm4_cement_mixers:dirt { | ||
| "values": [ | ||
| "minecraft:dirt", | ||
| "minecraft:coarse_dirt", | ||
| "minecraft:rooted_dirt" | ||
| ] | ||
| } | ||
| execute if items block ~ ~ ~ container.0 #gm4_cement_mixers:dirt run function gm4_cement_mixers:item_fill/mud: | ||
| scoreboard players set $item_value gm4_lt_value -1 | ||
| item replace entity 00344d47-0004-0004-0004-000f04ce104d weapon.mainhand with minecraft:mud | ||
| function gm4_liquid_tanks:smart_item_fill | ||
| tag @s add gm4_lt_fill |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
|
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. Very interesting, I'm considering doing something similar with my interface for like kit pvp server kits. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| from gm4_liquid_tanks:liquid_wrappers import liquid | ||
|
|
||
| @liquid | ||
| class BottledLightning: | ||
| id = 'liab_lightning' | ||
| name = "Lightning" | ||
| capacity = 300 | ||
| skin = 'lightning_liquid' | ||
|
|
||
| liquid.init() | ||
|
|
||
| @liquid.item_fill("glass_bottle", "potion[custom_data~{gm4_lightning_in_a_bottle:1b}]", 1) | ||
| def fill_bottle(): | ||
| loot replace entity 344d47-4-4-4-f04ce104d weapon.mainhand loot gm4_lightning_in_a_bottle:items/bottle_of_lightning | ||
misode marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| @liquid.util_below | ||
| def lightning_strike(): | ||
| execute as @e[team=!invalid_team,type=!armor_stand,tag=!smithed.strict,limit=1,dx=0] | ||
| unless entity @s[gamemode=spectator] | ||
| unless entity @s[predicate=gm4_lightning_in_a_bottle:on_fire] | ||
| run function gm4_lightning_in_a_bottle:liquid_tanks/util/lightning: | ||
| execute at @s run summon lightning_bolt ~ ~ ~ | ||
| scoreboard players remove @e[type=marker,tag=gm4_liquid_tank,tag=gm4_processing_tank,distance=..8] gm4_lt_value 1 | ||
| playsound entity.firework_rocket.twinkle block @a[distance=..8] ~ ~ ~ 2 1.5 | ||
| advancement grant @s only gm4:lightning_in_a_bottle_drink | ||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| #@s = gm4_liquid_minecart_stand copying tank data to it's armor items, at location of tank | ||
| #@s = gm4_liquid_minecart_display copying tank data to it's item, at location of tank | ||
| #run from init_liquid | ||
|
|
||
| data modify entity @s equipment.feet.components."minecraft:custom_data".gm4_liquid_minecarts.liquid_tag set from entity @e[type=marker,limit=1,tag=gm4_liquid_tank,sort=nearest] data.gm4_liquid_tanks.liquid_tag | ||
| data modify entity @s equipment.feet.components."minecraft:custom_data".gm4_liquid_minecarts.tank.texture set from entity @e[type=armor_stand,tag=gm4_liquid_tank_display,limit=1,sort=nearest] equipment.head | ||
| data modify entity @s equipment.feet.components."minecraft:custom_data".gm4_liquid_minecarts.tank.CustomName set from block ~ ~ ~ CustomName | ||
| data modify entity @s item.components."minecraft:custom_data".gm4_liquid_minecarts.liquid_tag set from entity @e[type=marker,limit=1,tag=gm4_liquid_tank,sort=nearest,distance=..2] data.gm4_liquid_tanks.liquid_tag | ||
| data modify entity @s item.components."minecraft:custom_data".gm4_liquid_minecarts.tank.texture set from entity @e[type=item_display,tag=gm4_liquid_tank_liquid_display,limit=1,sort=nearest,distance=..2] item | ||
| data modify entity @s item.components."minecraft:custom_data".gm4_liquid_minecarts.tank.CustomName set from block ~ ~ ~ CustomName |
Uh oh!
There was an error while loading. Please reload this page.