Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f62a394
Update YouDidThis pack to 1.20.5
Nincodedo Apr 24, 2024
7636230
Update Minecraft to 1.20.5
Nincodedo Apr 24, 2024
c229711
Update OCW advancements, first pass
Nincodedo Apr 24, 2024
9d30c7a
Update crafting recipes to 1.20.5
Nincodedo Apr 25, 2024
27dee49
Update override Minecraft loot tables for 1.20.5
Nincodedo Apr 25, 2024
da2dacd
Update OCW loot tables for 1.20.5, first pass
Nincodedo Apr 25, 2024
e9f3f98
Update Boat Compass to 1.20.5
Nincodedo Apr 25, 2024
9429c6e
Fix quotes for custom data checking
Nincodedo Apr 26, 2024
e2e76f0
Update Custom Compostables to 1.20.5
Nincodedo Apr 25, 2024
e72043d
Fix composter not filling
Nincodedo Apr 27, 2024
7bb8935
Add Bidoof banner pattern
Nincodedo Apr 30, 2024
97196a7
Update some functions to 1.20.6
Nincodedo Apr 30, 2024
4576205
Update Ascend to 1.20.6
Nincodedo May 1, 2024
1d0c32d
Fix item pickup advancements
Nincodedo May 1, 2024
a330861
Update Iridium Rod to 1.20.6
Nincodedo May 1, 2024
42cf630
Merge branch 'main' into feature/minecraft-1.20.5
Nincodedo May 31, 2024
e470337
Merge branch 'main' into feature/minecraft-1.20.5
Nincodedo Oct 1, 2024
6d9312a
Update Dockerfile-log-watcher curl 8.10.1-r0
Nincodedo Oct 1, 2024
5790dba
Merge branch 'main' into feature/minecraft-1.20.5
Nincodedo Oct 26, 2024
ca5da88
WIP: Update to Minecraft 1.21.3
Nincodedo Oct 26, 2024
6a6df77
Fix datapacks
Nincodedo Oct 27, 2024
7752e75
Merge branch 'main' into feature/minecraft-1.21.3
Nincodedo Jan 13, 2025
bdc4fce
Docker compose changes
Nincodedo Dec 16, 2024
52ab43b
1.21 updates
Nincodedo Aug 13, 2025
1635b32
1.21.9+ changes
Nincodedo Aug 7, 2025
75b3b81
Add Industrial Village
Nincodedo Aug 13, 2025
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
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ trim_trailing_whitespace = false
[{*.bash,*.sh,*.zsh}]
indent_size = 2
tab_width = 2
end_of_line = lf

[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.stylelintrc,bowerrc,jest.config}]
indent_size = 2
Expand Down
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto
*.txt text
*.sh text eol=lf
41 changes: 41 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# syntax=docker/dockerfile:1
FROM alpine:3.22.1 AS log_watcher
WORKDIR /app
RUN apk --no-cache add tzdata docker=28.3.3-r0 docker-cli-compose=2.36.2-r0 curl=8.14.1-r1 jq=1.8.0-r0
COPY docker-compose.yaml ocw-minecraft/docker-compose.yaml
COPY --chmod=755 rhc/scripts/*.sh .
COPY *.env ocw-minecraft/
LABEL org.opencontainers.image.source="https://github.com/Nincodedo/rhc-ocw"
ENTRYPOINT ["/app/resetWorld.sh"]

FROM debian:stable-slim AS mc_build

RUN apt-get update \
&& apt-get install zip wget ca-certificates -y --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

COPY datapacks /datapacks/
RUN cd /datapacks/who-did-this \
&& zip -r who-did-this.zip . \
&& mv who-did-this.zip /datapacks

FROM itzg/minecraft-server:2025.8.0 AS mc

ENV MODRINTH_PROJECTS=mc-server-description,rightclickharvest,vanilla-pings
ENV MODRINTH_DOWNLOAD_DEPENDENCIES=required

ENV DATAPACKS=/datapacks/who-did-this.zip
COPY --from=mc_build /datapacks/*.zip /datapacks/

ENV VANILLATWEAKS_FILE=/vt/craftingtweaks.json,/vt/datapacks.json
COPY rhc/vt/*.json /vt/

COPY rhc/patches/*.json /patches/
ENV PATCH_DEFINITIONS=/patches

ENV REPLACE_ENV_VARIABLES=true
ENV REPLACE_ENV_DURING_SYNC=true
ENV SYNC_SKIP_NEWER_IN_DESTINATION=false

LABEL org.opencontainers.image.source="https://github.com/Nincodedo/rhc-ocw"
16 changes: 0 additions & 16 deletions Dockerfile-log-watcher

This file was deleted.

44 changes: 0 additions & 44 deletions Dockerfile-mc

This file was deleted.

1 change: 1 addition & 0 deletions common.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TZ="America/Chicago"
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"entity": "this",
"predicate": {
"type_specific": {
"type": "player",
"type": "minecraft:player",
"looking_at": {
"type": "minecraft:interaction",
"nbt": "{Tags:[\"composter_interaction\"]}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"trigger": "minecraft:player_interacted_with_entity",
"conditions": {
"item": {
"tag": "custcompost:compostables",
"items": "#custcompost:compostables",
"count": {
"min": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"predicate": {
"equipment": {
"mainhand": {
"tag": "custcompost:compostables"
"items": "#custcompost:compostables"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"predicate": {
"equipment": {
"mainhand": {
"tag": "custcompost:compostables"
"items": "#custcompost:compostables"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ scoreboard players set @s hopperslot2other 0
scoreboard players set @s hopperslot3other 0
scoreboard players set @s hopperslot4other 0

execute store result score @s hopperslot0 run data get block ~ ~1 ~ Items[{Slot:0b,id:"minecraft:poisonous_potato"}].Count
execute store result score @s hopperslot1 run data get block ~ ~1 ~ Items[{Slot:1b,id:"minecraft:poisonous_potato"}].Count
execute store result score @s hopperslot2 run data get block ~ ~1 ~ Items[{Slot:2b,id:"minecraft:poisonous_potato"}].Count
execute store result score @s hopperslot3 run data get block ~ ~1 ~ Items[{Slot:3b,id:"minecraft:poisonous_potato"}].Count
execute store result score @s hopperslot4 run data get block ~ ~1 ~ Items[{Slot:4b,id:"minecraft:poisonous_potato"}].Count
execute store result score @s hopperslot0 run data get block ~ ~1 ~ Items[{Slot:0b,id:"minecraft:poisonous_potato"}].count
execute store result score @s hopperslot1 run data get block ~ ~1 ~ Items[{Slot:1b,id:"minecraft:poisonous_potato"}].count
execute store result score @s hopperslot2 run data get block ~ ~1 ~ Items[{Slot:2b,id:"minecraft:poisonous_potato"}].count
execute store result score @s hopperslot3 run data get block ~ ~1 ~ Items[{Slot:3b,id:"minecraft:poisonous_potato"}].count
execute store result score @s hopperslot4 run data get block ~ ~1 ~ Items[{Slot:4b,id:"minecraft:poisonous_potato"}].count

execute store result score @s hopperslot0other run data get block ~ ~1 ~ Items[{Slot:0b}].Count
execute store result score @s hopperslot1other run data get block ~ ~1 ~ Items[{Slot:1b}].Count
execute store result score @s hopperslot2other run data get block ~ ~1 ~ Items[{Slot:2b}].Count
execute store result score @s hopperslot3other run data get block ~ ~1 ~ Items[{Slot:3b}].Count
execute store result score @s hopperslot4other run data get block ~ ~1 ~ Items[{Slot:4b}].Count
execute store result score @s hopperslot0other run data get block ~ ~1 ~ Items[{Slot:0b}].count
execute store result score @s hopperslot1other run data get block ~ ~1 ~ Items[{Slot:1b}].count
execute store result score @s hopperslot2other run data get block ~ ~1 ~ Items[{Slot:2b}].count
execute store result score @s hopperslot3other run data get block ~ ~1 ~ Items[{Slot:3b}].count
execute store result score @s hopperslot4other run data get block ~ ~1 ~ Items[{Slot:4b}].count

scoreboard players operation @s hopperslot0other -= @s hopperslot0
scoreboard players operation @s hopperslot1other -= @s hopperslot1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ scoreboard objectives add hopperslot2other dummy
scoreboard objectives add hopperslot3other dummy
scoreboard objectives add hopperslot4other dummy
scoreboard objectives add hopperslottotal dummy

execute if entity @e[tag=hopper_enabled_composter] run schedule function custcompost:composter/hopper/schedule_hopper_tick_check 8t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"predicate": {
"equipment": {
"mainhand": {
"tag": "custcompost:compostables_65",
"items": "#custcompost:compostables_65",
"count": {
"min": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
"condition": "minecraft:location_check",
"predicate": {
"block": {
"blocks": [
"minecraft:composter"
],
"blocks": "minecraft:composter",
"state": {
"level": {
"min": 0,
"max": 6
"min": "0",
"max": "6"
}
}
}
Expand All @@ -26,7 +24,7 @@
"nbt": "{TransferCooldown:0}",
"state": {
"facing": "down",
"enabled": true
"enabled": "true"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"predicate": {
"equipment": {
"mainhand": {
"tag": "custcompost:compostables_65",
"items": "#custcompost:compostables_65",
"count": {
"min": 1
}
Expand Down
2 changes: 1 addition & 1 deletion datapacks/custom-compostables/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pack": {
"pack_format": 26,
"pack_format": 57,
"description": "Custom Compostables v0.1.0 by Nincodedo"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
{
"type": "minecraft:loot_table",
"name": "nincodedo:ocw_map"
"value": "nincodedo:ocw_map"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"entries": [
{
"type": "minecraft:item",
"weight": 2,
"name": "minecraft:arms_up_pottery_sherd"
"name": "minecraft:arms_up_pottery_sherd",
"weight": 2
},
{
"type": "minecraft:item",
"weight": 2,
"name": "minecraft:brewer_pottery_sherd"
"name": "minecraft:brewer_pottery_sherd",
"weight": 2
},
{
"type": "minecraft:item",
Expand Down Expand Up @@ -88,7 +88,7 @@
},
{
"type": "minecraft:loot_table",
"name": "nincodedo:ocw_map"
"value": "nincodedo:ocw_map"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{
"condition": "minecraft:location_check",
"predicate": {
"structure": "nincodedo:library_hidden_wing"
"structures": "nincodedo:library_hidden_wing"
}
}
]
Expand All @@ -27,14 +27,11 @@
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
"components": {
"minecraft:enchantments": {
"minecraft:silk_touch": 1
}
]
}
}
}
]
Expand Down
Loading