forked from Gamemode4Dev/GM4_Datapacks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Gamemode4Dev:master' into master
- Loading branch information
Showing
152 changed files
with
5,205 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
MODRINTH_AUTH_KEY = "BEET_MODRINTH_TOKEN" | ||
SMITHED_API = "https://api.smithed.dev/v2" | ||
SMITHED_AUTH_KEY = "BEET_SMITHED_TOKEN" | ||
SUPPORTED_GAME_VERSIONS = ["1.20", "1.20.1"] | ||
SUPPORTED_GAME_VERSIONS = ["1.20", "1.20.1", "1.20.2"] | ||
USER_AGENT = "Gamemode4Dev/GM4_Datapacks/release-pipeline ([email protected])" | ||
|
||
class ModrinthConfig(PluginOptions): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Auto Crafting <!--$headerTitle--> <!--$pmc:delete--> | ||
|
||
Excited for the new 1.21 crafter block? Want to start making the cake factory of your dreams right now? Try out Gamemode 4's take on auto-crafting, available right now for 1.19 and 1.20!<!--$pmc:headerSize--> | ||
|
||
<img src="images/auto_crafter.webp" alt="Auto Crafter at work" width="350"/> <!--$localAssetToURL--> <!--$modrinth:replaceWithVideo--> <!--$pmc:delete--> | ||
|
||
### Features | ||
- Crafts any vanilla item. | ||
- Set the recipe shape, give it ingredients one at a time, and power the piston to craft the item | ||
- Build a cool steampunk multiblock structure | ||
|
||
### Creation | ||
Craft the auto-crafter in a [Custom Crafter](https://wiki.gm4.co/wiki/Custom_Crafters) | ||
|
||
<img src="images/crafting_recipe.png" alt="Auto Crafter Recipe" width="150"/> <!--$localAssetToURL--> | ||
|
||
Build the Multiblock Structure | ||
|
||
<img src="images/setting-up-a-crafter.webp" alt="Auto Crafter Recipe" width="200"/> <!--$localAssetToURL--> | ||
|
||
### Usage | ||
- Set the shape of your recipe inside the Auto Crafter, using any items | ||
- Fill the top barrel with the ingredients of your recipe, in order | ||
- Power the Piston to craft the item | ||
- Retrieve the result from the bottom barrel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
id: gm4_chairs | ||
name: Chairs | ||
version: 1.2.X | ||
version: 1.3.X | ||
|
||
data_pack: | ||
load: . | ||
|
26 changes: 26 additions & 0 deletions
26
gm4_chairs/overlay_18/data/gm4_chairs/functions/create_chair.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Create chair from saddle item | ||
# @s = saddle item on top of stairs | ||
# at @s align xyz positioned ~.5 ~ ~.5 | ||
# run from main | ||
|
||
# spawn chair | ||
summon minecraft:pig ~ ~-10000.39 ~ {CustomName:'"gm4_chair"',Tags:["gm4_chairs","smithed.entity","smithed.strict","smithed.block"],Team:"gm4_chairs",NoAI:1b,Saddle:1b,NoGravity:1b,Silent:1b,DeathTime:19s,InLove:2147483647,Attributes:[{Name:"generic.max_health",Base:1.0},{Name:"generic.movement_speed",Base:0.0}],active_effects:[{id:'minecraft:invisibility',amplifier:0,duration:2147483647,show_particles:0b},{id:'minecraft:resistance',amplifier:10b,duration:2147483647,show_particles:0b}],DeathLootTable:"minecraft:empty"} | ||
|
||
# set chair to orientation of stairs | ||
execute if block ~ ~ ~ #minecraft:stairs[facing=north] positioned ~ ~-10000 ~ as @e[type=minecraft:pig,tag=gm4_chairs,distance=..0.4,limit=1] at @s run tp @s ~ ~10000 ~.05 0 0 | ||
execute if block ~ ~ ~ #minecraft:stairs[facing=south] positioned ~ ~-10000 ~ as @e[type=minecraft:pig,tag=gm4_chairs,distance=..0.4,limit=1] at @s run tp @s ~ ~10000 ~-.05 180 0 | ||
execute if block ~ ~ ~ #minecraft:stairs[facing=east] positioned ~ ~-10000 ~ as @e[type=minecraft:pig,tag=gm4_chairs,distance=..0.4,limit=1] at @s run tp @s ~-.05 ~10000 ~ 90 0 | ||
execute if block ~ ~ ~ #minecraft:stairs[facing=west] positioned ~ ~-10000 ~ as @e[type=minecraft:pig,tag=gm4_chairs,distance=..0.4,limit=1] at @s run tp @s ~.05 ~10000 ~ -90 0 | ||
|
||
# store saddle data in chair | ||
data modify entity @e[type=minecraft:pig,tag=gm4_chairs,distance=..0.4,limit=1] HandItems[0] set from entity @s Item | ||
scoreboard players set @e[type=minecraft:pig,tag=gm4_chairs,distance=..0.4,limit=1] gm4_entity_version 1 | ||
|
||
# place sound | ||
playsound minecraft:block.wool.place block @a[distance=..5] ~ ~ ~ .5 2 | ||
|
||
# advancement for creating a chair | ||
advancement grant @a[distance=..3,gamemode=!spectator] only gm4:chairs_creation | ||
|
||
# kill the saddle item | ||
kill @s |
14 changes: 14 additions & 0 deletions
14
gm4_chairs/overlay_18/data/gm4_chairs/functions/lightning/revive_chair.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Replace zombified piglin with chair | ||
# @s = zombified piglin that replaced the pig/chair | ||
# at @s | ||
# runs from lightning/delay | ||
|
||
# spawn chair | ||
summon minecraft:pig ~ ~-10000 ~ {Tags:["gm4_chairs","smithed.entity","smithed.strict","smithed.block"],Team:"gm4_chairs",NoAI:1b,Saddle:1b,NoGravity:1b,Silent:1b,DeathTime:19s,InLove:2147483647,Attributes:[{Name:"generic.movement_speed",Base:0.0}],active_effects:[{id:'minecraft:invisibility',amplifier:0,duration:2147483647,show_particles:0b},{id:'minecraft:resistance',amplifier:10b,duration:2147483647,show_particles:0b}],DeathLootTable:"minecraft:empty"} | ||
execute positioned ~ ~-10000 ~ run scoreboard players set @e[type=pig,tag=gm4_chairs,limit=1,distance=..0.1] gm4_entity_version 1 | ||
|
||
# copy zombified piglin rotation | ||
execute rotated as @s positioned ~ ~-10000 ~ run tp @e[type=minecraft:pig,tag=gm4_chairs,distance=..0.4,limit=1] ~ ~10000 ~ ~ ~ | ||
|
||
# kill zombified piglin | ||
tp @s ~ -10000 ~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"overlays": { | ||
"entries": [ | ||
{ | ||
"formats": 18, | ||
"directory": "overlay_18" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
id: gm4_combat_expanded | ||
name: Combat Expanded | ||
version: 1.3.X | ||
version: 1.4.X | ||
|
||
data_pack: | ||
load: . | ||
|
13 changes: 13 additions & 0 deletions
13
...18/data/gm4_combat_expanded/functions/armor/modifier/type/canine/wolf_initiate.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# match wolf to armor slot and player id | ||
# @s = new wolf | ||
# at unspecified | ||
# run from armor/type/canine/wolf_spawn | ||
|
||
data merge entity @s {CollarColor:15b,Tags:["gm4_ce_wolf"],active_effects:[{id:'minecraft:resistance',amplifier:9b,duration:-1,show_particles:0b}],Attributes:[{Name:"generic.attack_damage",Base:4}]} | ||
|
||
scoreboard players operation @s gm4_ce_id = $curr_id gm4_ce_id | ||
scoreboard players operation @s gm4_ce_data = $slot gm4_ce_data | ||
data modify entity @s Owner set from storage gm4_combat_expanded:temp uuid | ||
|
||
execute store result score $name_len gm4_ce_data run data get storage gm4_combat_expanded:temp tag.display.Name | ||
execute if score $name_len gm4_ce_data matches ..75 run data modify entity @s CustomName set from storage gm4_combat_expanded:temp tag.display.Name |
7 changes: 7 additions & 0 deletions
7
...panded/overlay_18/data/gm4_combat_expanded/functions/weapon/modifier/glow/glow.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# apply glowing and first_strike damage to entities hit | ||
# @s = entity being hit with glow | ||
# at unspecified | ||
# run from weapon/modifier/glow/activate | ||
|
||
# if not hit with glow yet activate first strike | ||
execute unless data entity @s ActiveEffects[{id:'minecraft:glowing'}] run function gm4_combat_expanded:weapon/modifier/glow/first_strike |
89 changes: 89 additions & 0 deletions
89
...anded/overlay_18/data/gm4_combat_expanded/loot_tables/mob/equip_arrow/skeleton_toxic.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"pools": [ | ||
{ | ||
"rolls": 1, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "minecraft:tipped_arrow", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:set_nbt", | ||
"tag": "{custom_potion_effects:[{id:'minecraft:weakness',amplifier:0b,duration:100},{id:'minecraft:hunger',amplifier:1b,duration:100},{id:'minecraft:poison',amplifier:0b,duration:100}],CustomPotionColor:5149489,HideFlags:32}" | ||
}, | ||
{ | ||
"function": "minecraft:set_lore", | ||
"lore": [ | ||
{ | ||
"translate": "potion.withDuration", | ||
"with": [ | ||
{ | ||
"translate": "potion.withAmplifier", | ||
"with": [ | ||
{ | ||
"translate": "effect.minecraft.hunger" | ||
}, | ||
{ | ||
"translate": "potion.potency.1" | ||
} | ||
] | ||
}, | ||
"0:05" | ||
], | ||
"color": "red", | ||
"italic": false | ||
}, | ||
{ | ||
"translate": "potion.withDuration", | ||
"with": [ | ||
{ | ||
"translate": "effect.minecraft.weakness" | ||
}, | ||
"0:05" | ||
], | ||
"color": "red", | ||
"italic": false | ||
}, | ||
{ | ||
"translate": "potion.withDuration", | ||
"with": [ | ||
{ | ||
"translate": "effect.minecraft.poison" | ||
}, | ||
"0:05" | ||
], | ||
"color": "red", | ||
"italic": false | ||
}, | ||
"", | ||
{ | ||
"translate": "potion.whenDrank", | ||
"color": "purple", | ||
"italic": false | ||
}, | ||
{ | ||
"translate": "attribute.modifier.take.0", | ||
"with": [ | ||
"4", | ||
{ | ||
"translate": "attribute.name.generic.attack_damage" | ||
} | ||
], | ||
"color": "red", | ||
"italic": false | ||
} | ||
] | ||
}, | ||
{ | ||
"function": "minecraft:set_name", | ||
"name": { | ||
"translate": "item.minecraft.tipped_arrow.effect.poison", | ||
"italic": false | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
64 changes: 64 additions & 0 deletions
64
...panded/overlay_18/data/gm4_combat_expanded/loot_tables/mob/equip_arrow/stray_harming.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"pools": [ | ||
{ | ||
"rolls": 1, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "minecraft:tipped_arrow", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:set_nbt", | ||
"tag": "{custom_potion_effects:[{id:'minecraft:slowness',amplifier:0b,duration:600}],Potion:\"minecraft:harming\",HideFlags:32,CustomPotionColor:4393481}" | ||
}, | ||
{ | ||
"function": "minecraft:set_lore", | ||
"lore": [ | ||
{ | ||
"translate": "potion.withDuration", | ||
"with": [ | ||
{ | ||
"translate": "effect.minecraft.slowness" | ||
}, | ||
"0:30" | ||
], | ||
"color": "red", | ||
"italic": false | ||
}, | ||
{ | ||
"translate": "effect.minecraft.instant_damage", | ||
"color": "red", | ||
"italic": false | ||
}, | ||
"", | ||
{ | ||
"translate": "potion.whenDrank", | ||
"color": "purple", | ||
"italic": false | ||
}, | ||
{ | ||
"translate": "attribute.modifier.take.1", | ||
"with": [ | ||
"15", | ||
{ | ||
"translate": "attribute.name.generic.movement_speed" | ||
} | ||
], | ||
"color": "red", | ||
"italic": false | ||
} | ||
] | ||
}, | ||
{ | ||
"function": "minecraft:set_name", | ||
"name": { | ||
"translate": "item.minecraft.tipped_arrow.effect.harming", | ||
"italic": false | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.