Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions gm4_gilded_gateways/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Gilded Gateways<!--$headerTitle--><!--$pmc:delete-->

Tired of boring bedrock end gateways? Bring back the magic with custom gateways! <!--$pmc:headerSize-->

<img src="images/gilded_gateways.webp" alt="Prettier End Gateways" width="350"/> <!--$localAssetToURL--> <!--$modrinth:replaceWithVideo--> <!--$pmc:delete-->

### Features
- Swag out your end!
- 3 Unique Gateway types for the main island
- A secret 4th type for the outer end
29 changes: 29 additions & 0 deletions gm4_gilded_gateways/beet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
id: gm4_gilded_gateways
name: Gilded Gateways
version: 1.0.X

data_pack:
load: .

pipeline:
- gm4.plugins.extend.module

meta:
gm4:
versioning:
schedule_loops: [tick]
website:
description: Tired of boring bedrock end gateways? Bring back the magic with custom gateways!
recommended: []
notes: []
modrinth:
project_id: pJokm5M5
smithed:
pack_id: gm4_gilded_gateways
wiki: https://wiki.gm4.co/wiki/Gilded_Gateways
credits:
Creators:
- runcows
- Dinoguin_Jess
Icon Design:
- runcows
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
execute unless score gilded_gateways gm4_modules matches 1 run data modify storage gm4:log queue append value {type:"install",module:"Gilded Gateways"}
execute unless score gilded_gateways gm4_earliest_version < gilded_gateways gm4_modules run scoreboard players operation gilded_gateways gm4_earliest_version = gilded_gateways gm4_modules
scoreboard players set gilded_gateways gm4_modules 1

scoreboard objectives add gm4_gilded_gateways dummy

schedule function gm4_gilded_gateways:tick 1t
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# @s = gateway marker of newly linked main island gateway
# at @s
# run from tick

data modify entity @s data.gm4_gilded_gateways.exit.x set from block ~ ~ ~ exit_portal[0]
data modify entity @s data.gm4_gilded_gateways.exit.y set from block ~ ~ ~ exit_portal[1]
data modify entity @s data.gm4_gilded_gateways.exit.z set from block ~ ~ ~ exit_portal[2]

function gm4_gilded_gateways:position with entity @s data.gm4_gilded_gateways.exit
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# @s = gateway marker of newly linked main island gateway
# at newly generated gateway on other side
# run from position

execute store success score #loaded gm4_gilded_gateways if loaded ~ ~ ~
# if its not loaded, then its for sure not forceloaded, so we can blindly forceload
execute if score #loaded gm4_gilded_gateways matches 0 run forceload add ~ ~

execute unless block ~ ~ ~ end_gateway unless block ~ ~1 ~ bedrock run return fail

# place
execute if entity @s[tag=gm4_gilded_gateways.gateway.0] run place template gm4_gilded_gateways:postgen_0 ~-2 ~-4 ~-2
execute if entity @s[tag=gm4_gilded_gateways.gateway.1] run place template gm4_gilded_gateways:postgen_1 ~-2 ~-4 ~-2
execute if entity @s[tag=gm4_gilded_gateways.gateway.2] run place template gm4_gilded_gateways:postgen_2 ~-2 ~-4 ~-2

# unforceload
execute if score #loaded gm4_gilded_gateways matches 0 run forceload remove ~ ~

# kill
kill @s
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# @s = gateway marker of newly linked main island gateway
# at @s
# run from link
# with $x, $y, $z: int coord positions

$execute positioned $(x) $(y) $(z) positioned ~ ~0.5 ~ run function gm4_gilded_gateways:place
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
schedule function gm4_gilded_gateways:tick 1t

execute in minecraft:the_end positioned 0 128 0 \
as @e[type=marker,tag=gm4_gilded_gateways.gateway,distance=..200] at @s \
if data block ~ ~ ~ exit_portal run function gm4_gilded_gateways:link
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"id": "gilded_gateways",
"name": "Gilded Gateways",
"module_type": "module",
"icon": {
"id": "minecraft:bedrock"
},
"criteria": {
"enter_gateway": {
"trigger": "minecraft:enter_block",
"conditions": {
"player": {
"type": "minecraft:location_check",
"predicate": {
"dimension": "minecraft:the_end"
}
},
"blocks": "minecraft:end_gateway"
}
}
},
"sections": [
{
"name": "display",
"enable": [],
"requirements": [
[
"enter_gateway"
]
],
"pages": [
[
{
"insert": "title"
},
{
"translate": "text.gm4.guidebook.gilded_gateways.description",
"fallback": "3 Unique Gateway types for the main island\nAnd a secret 4th type for the outer end"
}
]
]
}
]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"values": [
"minecraft:end_rod",
"minecraft:end_stone_bricks",
"minecraft:end_stone_brick_slab",
"minecraft:end_stone_brick_stairs",
"minecraft:end_stone_brick_wall"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"type": "minecraft:random_selector",
"features": [],
"default": {
"feature": {
"type": "minecraft:template",
"templates": [
{
"weight": 1,
"data": {
"id": "gm4_gilded_gateways:main_0",
"rotations": [
"none"
]
}
},
{
"weight": 1,
"data": {
"id": "gm4_gilded_gateways:main_1",
"rotations": [
"none"
]
}
},
{
"weight": 1,
"data": {
"id": "gm4_gilded_gateways:main_2",
"rotations": [
"none"
]
}
}
]
},
"placement": [
{
"type": "minecraft:offset",
"x": 0,
"y": -4,
"z": 0
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"type": "minecraft:random_selector",
"features": [],
"default": {
"feature": {
"type": "minecraft:template",
"templates": [
{
"weight": 1,
"data": {
"id": "gm4_gilded_gateways:return",
"rotations": [
"none"
]
}
}
]
},
"placement": [
{
"type": "minecraft:offset",
"x": 0,
"y": -2,
"z": 0
}
]
}
}
Binary file added gm4_gilded_gateways/images/gilded_gateways.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gm4_gilded_gateways/images/main_island_above.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gm4_gilded_gateways/images/main_island_side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gm4_gilded_gateways/images/outer_end_gateway.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gm4_gilded_gateways/pack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
145 changes: 145 additions & 0 deletions gm4_gilded_gateways/pack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions gm4_gilded_gateways/translations.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
key,en_us
text.gm4.guidebook.module_desc.gilded_gateways,"Tired of boring bedrock end gateways? Bring back the magic with custom gateways!"
text.gm4.guidebook.gilded_gateways.description,"3 Unique Gateway types for the main island\nAnd a secret 4th type for the outer end"
3 changes: 2 additions & 1 deletion gm4_guidebook/triggers.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"__important__": "Generated by generate_guidebooks.py. Don't manually update this",
"__next__": 126,
"__next__": 127,
"animi_shamir": 91,
"apple_trees": 83,
"arborenda_shamir": 20,
Expand Down Expand Up @@ -47,6 +47,7 @@
"forterra_shamir": 19,
"fulcio_shamir": 79,
"gemini_shamir": 22,
"gilded_gateways": 126,
"harvest_moons": 45,
"heart_canisters": 15,
"helious_shamir": 69,
Expand Down
Loading