Add server-only crossbow ammunition and copper rail speed controls
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
* text=auto
|
||||
*.java text eol=lf
|
||||
*.json text eol=lf
|
||||
*.md text eol=lf
|
||||
*.kts text eol=lf
|
||||
*.ps1 text eol=lf
|
||||
gradlew text eol=lf
|
||||
gradlew.bat text eol=crlf
|
||||
*.jar binary
|
||||
@@ -0,0 +1,5 @@
|
||||
.gradle/
|
||||
build/
|
||||
run/
|
||||
*.log
|
||||
.idea/
|
||||
@@ -0,0 +1,8 @@
|
||||
# AstraContent
|
||||
|
||||
- Серверный мод Minecraft 26.2 / NeoForge 26.2.0.79 / Java 25.
|
||||
- Клиент — ванильный Minecraft с серверным ресурспаком. Не добавлять клиентские регистрации или обязательные сетевые каналы.
|
||||
- Предметы и рецепты используют ванильные компоненты и сериализаторы; ресурсы добавляются в исходники ресурспака AstraPlus. Механики принадлежат AstraContent.
|
||||
- Правила родительского AGENTS.md о Git и резервных копиях обязательны.
|
||||
- Для этого мода вместо Paper использовать `C:\Users\ScarPC\Documents\NeoForge Server 26.2\mods`, архив — `old-mods/YYYYMMDD-HHMMSS`.
|
||||
- Собирать, проверять, устанавливать прямо в mods, сравнивать SHA-256; не менять конфигурации и мир рабочего сервера.
|
||||
@@ -0,0 +1,102 @@
|
||||
# AstraContent 0.1.0
|
||||
|
||||
Серверный мод для Minecraft 26.2, NeoForge 26.2.0.79 и Java 25.
|
||||
**На клиент мод устанавливать не нужно.** Для медного оформления используется обычный
|
||||
серверный ресурспак AstraPlus. AstraPlus 0.5.x обязателен для сборки ресурсов;
|
||||
AstraPacks раздаёт их игрокам, если установлен и настроен.
|
||||
|
||||
## Арбалет и огненный заряд
|
||||
|
||||
Обычный арбалет принимает из второй руки или инвентаря:
|
||||
|
||||
- эндер-жемчуг — телепортирует стрелявшего по штатным правилам;
|
||||
- огненный заряд — малый огненный шар;
|
||||
- око Эндера — запускает обычное око, указывающее на крепость; если крепость не найдена, предмет возвращается;
|
||||
- обычные, коричневые и синие яйца, снежки, вихревые заряды и пузырьки опыта — штатные снаряды;
|
||||
- TNT — подожжённый динамит с обычным фитилём 80 тиков, направленный выстрелом.
|
||||
|
||||
Зарядка, её отмена при отпускании ПКМ, звуки, прочность, быстрый заряд и мультивыстрел
|
||||
используют ванильный арбалет. Стрелы и фейерверки сохраняют прежние механики.
|
||||
Мультивыстрел расходует один боеприпас; дополнительные/creative-ока не возвращают предметы.
|
||||
Разрыв, телепортация, огонь и эффекты проходят через ванильные сущности и события NeoForge.
|
||||
|
||||
ПКМ огненным зарядом в воздух выпускает огненный шар. Расход — один заряд в survival,
|
||||
задержка — 10 тиков. Использование на блоках сохраняет штатное поджигание.
|
||||
|
||||
## Рельсы
|
||||
|
||||
| Рельсы | Предел на прямой при питании |
|
||||
|---|---:|
|
||||
| Медные | 20 м/с |
|
||||
| Потемневшие | 16 м/с |
|
||||
| Состаренные | 12 м/с |
|
||||
| Окисленные | 8 м/с |
|
||||
| Обычные золотые | 2 × сила сигнала, от 2 до 30 м/с |
|
||||
|
||||
Берётся самый сильный вход, включая питание по соединённым рельсам в пределах
|
||||
ванильной дальности 8 блоков. У каждой вагонетки сохраняется последний установленный
|
||||
предел, в том числе после перезапуска. Без питания рельсы тормозят штатным способом.
|
||||
Обычные рельсы не ускоряют. До первого регулятора сохраняется ванильный предел:
|
||||
обычно 8 м/с, либо правило уже включённого эксперимента.
|
||||
|
||||
Поддерживаются обычная и экспериментальная физика; мод сам эксперимент не включает.
|
||||
В обычной физике перед поворотами, уклонами, концом пути, детектором, активатором
|
||||
и участком торможения скорость ограничивается до 8 м/с, чтобы не пропускать блоки
|
||||
и не сходить с пути. На воде применяется штатное снижение скорости вдвое.
|
||||
В экспериментальной физике обработка всех пройденных рельсов остаётся ванильной;
|
||||
последующее ускорение также ограничено заданным пределом.
|
||||
|
||||
Медные рельсы создаются по рецепту золотых с заменой золота на медь:
|
||||
6 слитков меди + палка + редстоун → 6 рельсов. Рецепт появляется в книге при получении меди.
|
||||
Рельсы окисляются с учётом random_tick_speed, соседней меди и загруженности участка.
|
||||
Соты вощат установленный рельс. Топор сначала снимает воск, затем по одной стадии окисления.
|
||||
Вощёные варианты имеют те же скорости и не окисляются.
|
||||
|
||||
Оператор может получить стопку любого варианта:
|
||||
|
||||
```text
|
||||
/astracontent give copper_rail
|
||||
/astracontent give exposed_copper_rail
|
||||
/astracontent give weathered_copper_rail
|
||||
/astracontent give oxidized_copper_rail
|
||||
/astracontent give waxed_copper_rail
|
||||
```
|
||||
|
||||
Префикс `waxed_` доступен для всех четырёх степеней.
|
||||
|
||||
## Совместимость с ванильным клиентом
|
||||
|
||||
В мире стоят настоящие `minecraft:powered_rail`. Поэтому установка, соединения,
|
||||
выделение, уклоны, вода, потеря опоры и разрушение работают штатно.
|
||||
Вариант хранится во вложении чанка; дроп и pick block возвращают соответствующий предмет.
|
||||
Одна временная `item_display` накладывает медную модель, включая питание и наклон.
|
||||
Отображения не сохраняются как отдельные сущности и восстанавливаются при загрузке чанка.
|
||||
|
||||
Это имеет ограничения ванильного клиента: в F3 видна золотая основа, частицы разрушения
|
||||
остаются ванильными; без ресурспака или за дальностью отображения сущностей видна основа.
|
||||
Команды `/clone`, схематики и сторонние редакторы, копирующие только BlockState,
|
||||
не переносят вложение с медным вариантом. Интеграции защиты должны отменять стандартные
|
||||
события взаимодействия/разрушения; мод не предоставляет отдельную систему регионов.
|
||||
|
||||
## Установка и разработка
|
||||
|
||||
Рабочий JAR: `C:\Users\ScarPC\Documents\NeoForge Server 26.2\mods\AstraContent-0.1.0.jar`.
|
||||
После установки требуется перезапуск сервера. При запуске добавляются только отсутствующие
|
||||
ресурсы в `astraplus/resources/assets/astracontent`; правки администратора не заменяются.
|
||||
При выключенной стартовой сборке ресурспака выполнить `/astraplus build`.
|
||||
Конфигурации, миры и исходники AstraPlus установка JAR не заменяет.
|
||||
|
||||
```powershell
|
||||
.\gradlew.bat build verificationJar
|
||||
.\tools\verify-server.ps1
|
||||
.\tools\verify-server.ps1 -Experimental
|
||||
```
|
||||
|
||||
Проверки используют отдельные временные миры в `build/verification-*`, затем перезапускают
|
||||
их для проверки сохранения. Проверяются настоящий крафт и размещение, дроп, вощение,
|
||||
боеприпасы, мультивыстрел, ПКМ огненным зарядом, скорости и аналоговый редстоун,
|
||||
повороты/уклоны во всех направлениях, тормоза, детекторы, активаторы, вода,
|
||||
типы вагонеток и переходы между ограничениями. Тестовый JAR на рабочий сервер не устанавливается.
|
||||
|
||||
Модели состоят из геометрии и ссылок на ванильные текстуры. Воспроизводимая генерация:
|
||||
`tools/generate-resources.ps1`. Визуальная проверка в живом клиенте отдельно не автоматизирована.
|
||||
@@ -0,0 +1,22 @@
|
||||
plugins { java; id("net.neoforged.moddev") version "2.0.146" }
|
||||
group = "online.astradev"
|
||||
version = "0.1.0"
|
||||
repositories { mavenCentral() }
|
||||
dependencies {
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
|
||||
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.11.4")
|
||||
}
|
||||
neoForge {
|
||||
version = "26.2.0.79"
|
||||
mods { create("astracontent") { sourceSet(sourceSets.main.get()) } }
|
||||
}
|
||||
java { toolchain.languageVersion.set(JavaLanguageVersion.of(25)); withSourcesJar() }
|
||||
tasks.withType<JavaCompile>().configureEach { options.encoding = "UTF-8"; options.release.set(25) }
|
||||
tasks.processResources { filesMatching("META-INF/neoforge.mods.toml") { expand("version" to project.version) } }
|
||||
tasks.test { useJUnitPlatform() }
|
||||
sourceSets.test { compileClasspath += sourceSets.main.get().compileClasspath; runtimeClasspath += sourceSets.main.get().compileClasspath }
|
||||
val verification = sourceSets.create("verification") {
|
||||
compileClasspath += sourceSets.main.get().output + sourceSets.main.get().compileClasspath
|
||||
runtimeClasspath += output + compileClasspath
|
||||
}
|
||||
tasks.register<Jar>("verificationJar") { from(verification.output); archiveClassifier.set("verification") }
|
||||
Vendored
BIN
Binary file not shown.
+10
@@ -0,0 +1,10 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
|
||||
networkTimeout=10000
|
||||
retries=0
|
||||
retryBackOffMs=500
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionSha256Sum=acd53f1edaf02f1a8ff99879f8a34b302661a057d9b063ae9e35b552f804d20a
|
||||
@@ -0,0 +1,248 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Copyright © 2015 the original authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# gradlew start up script for POSIX generated by Gradle.
|
||||
#
|
||||
# Important for running:
|
||||
#
|
||||
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
||||
# noncompliant, but you have some other compliant shell such as ksh or
|
||||
# bash, then to run this script, type that shell name before the whole
|
||||
# command line, like:
|
||||
#
|
||||
# ksh gradlew
|
||||
#
|
||||
# Busybox and similar reduced shells will NOT work, because this script
|
||||
# requires all of these POSIX shell features:
|
||||
# * functions;
|
||||
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
||||
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
||||
# * compound commands having a testable exit status, especially «case»;
|
||||
# * various built-in commands including «command», «set», and «ulimit».
|
||||
#
|
||||
# Important for patching:
|
||||
#
|
||||
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
||||
# by Bash, Ksh, etc; in particular arrays are avoided.
|
||||
#
|
||||
# The "traditional" practice of packing multiple parameters into a
|
||||
# space-separated string is a well documented source of bugs and security
|
||||
# problems, so this is (mostly) avoided, by progressively accumulating
|
||||
# options in "$@", and eventually passing that to Java.
|
||||
#
|
||||
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
||||
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
||||
# see the in-line comments for details.
|
||||
#
|
||||
# There are tweaks for specific operating systems such as AIX, CygWin,
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
|
||||
# Resolve links: $0 may be a link
|
||||
app_path=$0
|
||||
|
||||
# Need this for daisy-chained symlinks.
|
||||
while
|
||||
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
||||
[ -h "$app_path" ]
|
||||
do
|
||||
ls=$( ls -ld "$app_path" )
|
||||
link=${ls#*' -> '}
|
||||
case $link in #(
|
||||
/*) app_path=$link ;; #(
|
||||
*) app_path=$APP_HOME$link ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# This is normally unused
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
} >&2
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
} >&2
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "$( uname )" in #(
|
||||
CYGWIN* ) cygwin=true ;; #(
|
||||
Darwin* ) darwin=true ;; #(
|
||||
MSYS* | MINGW* ) msys=true ;; #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD=$JAVA_HOME/jre/sh/java
|
||||
else
|
||||
JAVACMD=$JAVA_HOME/bin/java
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD=java
|
||||
if ! command -v java >/dev/null 2>&1
|
||||
then
|
||||
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
case $MAX_FD in #(
|
||||
max*)
|
||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC2039,SC3045
|
||||
MAX_FD=$( ulimit -H -n ) ||
|
||||
warn "Could not query maximum file descriptor limit"
|
||||
esac
|
||||
case $MAX_FD in #(
|
||||
'' | soft) :;; #(
|
||||
*)
|
||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC2039,SC3045
|
||||
ulimit -n "$MAX_FD" ||
|
||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||
esac
|
||||
fi
|
||||
|
||||
# Collect all arguments for the java command, stacking in reverse order:
|
||||
# * args from the command line
|
||||
# * the main class name
|
||||
# * -classpath
|
||||
# * -D...appname settings
|
||||
# * --module-path (only if needed)
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
||||
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if "$cygwin" || "$msys" ; then
|
||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||
|
||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
for arg do
|
||||
if
|
||||
case $arg in #(
|
||||
-*) false ;; # don't mess with options #(
|
||||
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
||||
[ -e "$t" ] ;; #(
|
||||
*) false ;;
|
||||
esac
|
||||
then
|
||||
arg=$( cygpath --path --ignore --mixed "$arg" )
|
||||
fi
|
||||
# Roll the args list around exactly as many times as the number of
|
||||
# args, so each arg winds up back in the position where it started, but
|
||||
# possibly modified.
|
||||
#
|
||||
# NB: a `for` loop captures its iteration list before it begins, so
|
||||
# changing the positional parameters here affects neither the number of
|
||||
# iterations, nor the values presented in `arg`.
|
||||
shift # remove old arg
|
||||
set -- "$@" "$arg" # push replacement arg
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Collect all arguments for the java command:
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# and any embedded shellness will be escaped.
|
||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||
# treated as '${Hostname}' itself on the command line.
|
||||
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
||||
"$@"
|
||||
|
||||
# Stop when "xargs" is not available.
|
||||
if ! command -v xargs >/dev/null 2>&1
|
||||
then
|
||||
die "xargs is not available"
|
||||
fi
|
||||
|
||||
# Use "xargs" to parse quoted args.
|
||||
#
|
||||
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||
#
|
||||
# In Bash we could simply go:
|
||||
#
|
||||
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
||||
# set -- "${ARGS[@]}" "$@"
|
||||
#
|
||||
# but POSIX shell has neither arrays nor command substitution, so instead we
|
||||
# post-process each arg (as a line of input to sed) to backslash-escape any
|
||||
# character that might be a shell metacharacter, then use eval to reverse
|
||||
# that process (while maintaining the separation between arguments), and wrap
|
||||
# the whole thing up as a single "set" statement.
|
||||
#
|
||||
# This will of course break if any of these variables contains a newline or
|
||||
# an unmatched quote.
|
||||
#
|
||||
|
||||
eval "set -- $(
|
||||
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
||||
xargs -n1 |
|
||||
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||
tr '\n' ' '
|
||||
)" '"$@"'
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
Vendored
+82
@@ -0,0 +1,82 @@
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
@rem SPDX-License-Identifier: Apache-2.0
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem gradlew startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables, and ensure extensions are enabled
|
||||
setlocal EnableExtensions
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%"=="" set DIRNAME=.
|
||||
@rem This is normally unused
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if %ERRORLEVEL% equ 0 goto execute
|
||||
|
||||
echo. 1>&2
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
||||
echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
"%COMSPEC%" /c exit 1
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo. 1>&2
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
||||
echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
"%COMSPEC%" /c exit 1
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
|
||||
|
||||
@rem Execute gradlew
|
||||
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
|
||||
@rem which allows us to clear the local environment before executing the java command
|
||||
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
|
||||
|
||||
:exitWithErrorLevel
|
||||
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
|
||||
"%COMSPEC%" /c exit %ERRORLEVEL%
|
||||
@@ -0,0 +1,2 @@
|
||||
plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0" }
|
||||
rootProject.name = "AstraContent"
|
||||
@@ -0,0 +1,20 @@
|
||||
package online.astradev.content;
|
||||
|
||||
import net.neoforged.api.distmarker.Dist;
|
||||
import net.neoforged.bus.api.IEventBus;
|
||||
import net.neoforged.fml.common.Mod;
|
||||
import net.neoforged.fml.loading.FMLPaths;
|
||||
import net.neoforged.neoforge.common.NeoForge;
|
||||
import online.astradev.content.rail.Rails;
|
||||
import online.astradev.content.weapon.Ammunition;
|
||||
|
||||
@Mod(value = "astracontent", dist = Dist.DEDICATED_SERVER)
|
||||
public final class AstraContent {
|
||||
public AstraContent(IEventBus bus) {
|
||||
Defaults.install(FMLPaths.GAMEDIR.get());
|
||||
Rails.register(bus);
|
||||
NeoForge.EVENT_BUS.register(Rails.class);
|
||||
NeoForge.EVENT_BUS.register(Ammunition.class);
|
||||
NeoForge.EVENT_BUS.register(online.astradev.content.rail.RailCommands.class);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package online.astradev.content;
|
||||
|
||||
import java.nio.file.*;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
/** Install absent defaults before AstraPlus loads its catalog. Never overwrite administrator edits. */
|
||||
public final class Defaults {
|
||||
private Defaults() {}
|
||||
public static void install(Path root) {
|
||||
try (var index = Defaults.class.getResourceAsStream("/defaults/index.txt")) {
|
||||
if (index == null) throw new IllegalStateException("Missing content index");
|
||||
for (String name : new String(index.readAllBytes(), StandardCharsets.UTF_8).lines().toList()) {
|
||||
if (name.isBlank()) continue;
|
||||
Path target = root.toAbsolutePath().normalize().resolve("astraplus").resolve(name).normalize();
|
||||
if (!target.startsWith(root.toAbsolutePath().normalize().resolve("astraplus"))) throw new IllegalArgumentException(name);
|
||||
for (Path part = target; part != null; part = part.getParent())
|
||||
if (Files.isSymbolicLink(part)) throw new IllegalStateException("Symbolic link: " + part);
|
||||
if (Files.exists(target)) continue;
|
||||
Files.createDirectories(target.getParent());
|
||||
try (var stream = Defaults.class.getResourceAsStream("/defaults/" + name)) {
|
||||
if (stream == null) throw new IllegalStateException("Missing default: " + name);
|
||||
Files.copy(stream, target);
|
||||
}
|
||||
}
|
||||
} catch (java.io.IOException e) { throw new IllegalStateException("Cannot install AstraContent defaults", e); }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package online.astradev.content.mixin;
|
||||
|
||||
import java.util.function.Predicate;
|
||||
import net.minecraft.world.item.*;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.projectile.Projectile;
|
||||
import online.astradev.content.weapon.Ammunition;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.*;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
@Mixin(CrossbowItem.class)
|
||||
public abstract class CrossbowMixin {
|
||||
@Inject(method = {"getSupportedHeldProjectiles()Ljava/util/function/Predicate;", "getAllSupportedProjectiles()Ljava/util/function/Predicate;"}, at = @At("RETURN"), cancellable = true)
|
||||
private void astra$ammo(CallbackInfoReturnable<Predicate<ItemStack>> cir) { cir.setReturnValue(cir.getReturnValue().or(Ammunition::accepts)); }
|
||||
@Inject(method = "createProjectile", at = @At("HEAD"), cancellable = true)
|
||||
private void astra$create(Level level, LivingEntity owner, ItemStack weapon, ItemStack ammo, boolean critical, CallbackInfoReturnable<Projectile> cir) {
|
||||
if (Ammunition.accepts(ammo)) cir.setReturnValue(Ammunition.create(level, owner, ammo));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package online.astradev.content.mixin;
|
||||
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.world.entity.vehicle.minecart.*;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
import online.astradev.content.rail.CartSpeed;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.*;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
@Mixin(NewMinecartBehavior.class)
|
||||
public abstract class ExperimentalCartMixin extends MinecartBehavior {
|
||||
protected ExperimentalCartMixin(AbstractMinecart cart){super(cart);}
|
||||
@Inject(method="calculateTrackSpeed",at=@At("RETURN"),cancellable=true)
|
||||
private void astra$exactSpeed(CallbackInfoReturnable<Vec3> cir) {
|
||||
if(!(level() instanceof ServerLevel level))return;
|
||||
double limit=((CartSpeed)minecart).astracontent$limit(level);
|
||||
var movement=cir.getReturnValue();
|
||||
if(limit>0 && movement.horizontalDistance()>limit)cir.setReturnValue(movement.scale(limit/movement.horizontalDistance()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package online.astradev.content.mixin;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.world.entity.vehicle.minecart.MinecartFurnace;
|
||||
import online.astradev.content.rail.CartSpeed;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.*;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
@Mixin(MinecartFurnace.class)
|
||||
public abstract class FurnaceCartMixin {
|
||||
@Inject(method="getMaxSpeed",at=@At("RETURN"),cancellable=true)
|
||||
private void astra$furnace(ServerLevel level,CallbackInfoReturnable<Double> cir) {
|
||||
double limit=((CartSpeed)this).astracontent$limit(level);if(limit>0)cir.setReturnValue(limit);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package online.astradev.content.mixin;
|
||||
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.world.entity.vehicle.minecart.AbstractMinecart;
|
||||
import net.minecraft.world.level.storage.*;
|
||||
import online.astradev.content.rail.RailSpeed;
|
||||
import org.spongepowered.asm.mixin.*;
|
||||
import org.spongepowered.asm.mixin.injection.*;
|
||||
import org.spongepowered.asm.mixin.injection.callback.*;
|
||||
|
||||
@Mixin(AbstractMinecart.class)
|
||||
public abstract class MinecartMixin implements online.astradev.content.rail.CartSpeed {
|
||||
@Unique private double astra$speed;
|
||||
@Inject(method="getMaxSpeed",at=@At("RETURN"),cancellable=true)
|
||||
private void astra$limit(ServerLevel level,CallbackInfoReturnable<Double> cir) {
|
||||
double limit=astracontent$limit(level);
|
||||
if(limit>0)cir.setReturnValue(limit);
|
||||
}
|
||||
@Override public double astracontent$limit(ServerLevel level) {
|
||||
var cart=(AbstractMinecart)(Object)this;
|
||||
astra$speed=RailSpeed.target(level,cart.getCurrentBlockPosOrRailBelow(),astra$speed);
|
||||
// Preserve existing experimental gamerules until this cart reaches a regulator.
|
||||
if(astra$speed==0) return 0;
|
||||
double limit=RailSpeed.safeLimit(cart,level,astra$speed/20);
|
||||
return limit*(cart.isInWater()?.5:1);
|
||||
}
|
||||
@Inject(method="addAdditionalSaveData",at=@At("RETURN"))
|
||||
private void astra$save(ValueOutput out,CallbackInfo ci) { if(astra$speed>0)out.putDouble("AstraContentSpeed",astra$speed); }
|
||||
@Inject(method="readAdditionalSaveData",at=@At("RETURN"))
|
||||
private void astra$read(ValueInput in,CallbackInfo ci) {
|
||||
double value=in.getDoubleOr("AstraContentSpeed",0); astra$speed=Double.isFinite(value) && value>0?Math.clamp(value,2,30):0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package online.astradev.content.mixin;
|
||||
|
||||
import net.minecraft.world.entity.projectile.EyeOfEnder;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
import online.astradev.content.weapon.PayloadProjectile;
|
||||
import org.spongepowered.asm.mixin.*;
|
||||
import org.spongepowered.asm.mixin.injection.*;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
@Mixin(EyeOfEnder.class)
|
||||
public abstract class PayloadMixin {
|
||||
@Shadow private boolean surviveAfterDeath;
|
||||
@Inject(method = "signalTo", at = @At("RETURN"))
|
||||
private void astra$noDuplicate(Vec3 target, CallbackInfo ci) {
|
||||
if (((EyeOfEnder)(Object)this).entityTags().contains(PayloadProjectile.NO_EYE_DROP)) surviveAfterDeath = false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package online.astradev.content.mixin;
|
||||
|
||||
import java.util.List;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.level.*;
|
||||
import net.minecraft.world.level.block.*;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.storage.loot.LootParams;
|
||||
import net.minecraft.world.level.storage.loot.parameters.LootContextParams;
|
||||
import online.astradev.content.rail.Rails;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
@Mixin(PoweredRailBlock.class)
|
||||
public abstract class RailBlockMixin extends BaseRailBlock {
|
||||
protected RailBlockMixin(boolean straight, Properties properties) { super(straight,properties); }
|
||||
@Override public void setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) {
|
||||
super.setPlacedBy(level,pos,state,placer,stack);
|
||||
if (state.is(Blocks.POWERED_RAIL) && level instanceof ServerLevel server) Rails.placed(server,pos,stack);
|
||||
}
|
||||
@Override protected List<ItemStack> getDrops(BlockState state, LootParams.Builder params) {
|
||||
var drops = super.getDrops(state,params); var origin = params.getOptionalParameter(LootContextParams.ORIGIN);
|
||||
if (!state.is(Blocks.POWERED_RAIL) || origin == null) return drops;
|
||||
var kind = Rails.loot(params.getLevel(),BlockPos.containing(origin));
|
||||
return kind == null ? drops : drops.stream().map(stack -> stack.is(asItem()) ? Rails.stack(kind,stack.getCount()) : stack).toList();
|
||||
}
|
||||
@Override protected ItemStack getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) {
|
||||
if (level instanceof ServerLevel server && state.is(Blocks.POWERED_RAIL)) {
|
||||
var kind=Rails.find(server,pos); if(kind!=null) return Rails.stack(kind,1);
|
||||
}
|
||||
return super.getCloneItemStack(level,pos,state,includeData);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package online.astradev.content.mixin;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.chunk.LevelChunk;
|
||||
import online.astradev.content.rail.Rails;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.*;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
@Mixin(LevelChunk.class)
|
||||
public abstract class RailChunkMixin {
|
||||
@Inject(method="setBlockState",at=@At("RETURN"))
|
||||
private void astra$changed(BlockPos pos,BlockState state,int flags,CallbackInfoReturnable<BlockState> cir) {
|
||||
if (((LevelChunk)(Object)this).getLevel() instanceof ServerLevel level) Rails.changed(level,pos,cir.getReturnValue(),state);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package online.astradev.content.rail;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
public interface CartSpeed {
|
||||
/** Blocks per tick, or zero until the cart encounters a powered speed regulator. */
|
||||
double astracontent$limit(ServerLevel level);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package online.astradev.content.rail;
|
||||
import net.minecraft.commands.Commands;
|
||||
import net.neoforged.bus.api.SubscribeEvent;
|
||||
import net.neoforged.neoforge.event.RegisterCommandsEvent;
|
||||
public final class RailCommands {
|
||||
private RailCommands() {}
|
||||
@SubscribeEvent public static void register(RegisterCommandsEvent event) {
|
||||
var give=Commands.literal("give");
|
||||
for(int i=0;i<8;i++) {
|
||||
var kind=RailKind.decode(i);
|
||||
give.then(Commands.literal(kind.id().getPath()).executes(ctx->{
|
||||
var player=ctx.getSource().getPlayerOrException();
|
||||
var stack=Rails.stack(kind,64);
|
||||
if(!player.getInventory().add(stack)) player.drop(stack,false);
|
||||
return 1;
|
||||
}));
|
||||
}
|
||||
event.getDispatcher().register(Commands.literal("astracontent").requires(Commands.hasPermission(Commands.LEVEL_GAMEMASTERS)).then(give));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package online.astradev.content.rail;
|
||||
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.core.component.DataComponents;
|
||||
import net.minecraft.resources.Identifier;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.world.entity.Display;
|
||||
import net.minecraft.world.entity.EntityTypes;
|
||||
import net.minecraft.world.item.*;
|
||||
import net.minecraft.world.level.block.PoweredRailBlock;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.storage.ValueOutput;
|
||||
|
||||
final class RailDisplay extends Display.ItemDisplay {
|
||||
private String previous;
|
||||
RailDisplay(ServerLevel level, BlockPos pos) {
|
||||
super(EntityTypes.ITEM_DISPLAY,level);
|
||||
setPos(pos.getX()+.5,pos.getY()+.5,pos.getZ()+.5);
|
||||
setItemTransform(ItemDisplayContext.NONE); setNoGravity(true); setInvulnerable(true); setSilent(true);
|
||||
}
|
||||
void update(RailKind kind, BlockState state) {
|
||||
var shape = state.getValue(PoweredRailBlock.SHAPE);
|
||||
boolean eastWest = shape == net.minecraft.world.level.block.state.properties.RailShape.EAST_WEST
|
||||
|| shape == net.minecraft.world.level.block.state.properties.RailShape.ASCENDING_EAST
|
||||
|| shape == net.minecraft.world.level.block.state.properties.RailShape.ASCENDING_WEST;
|
||||
String model = "rail_display/" + kind.age() + "/" + state.getValue(PoweredRailBlock.SHAPE).getSerializedName()
|
||||
+ (state.getValue(PoweredRailBlock.POWERED) ? "_on" : "");
|
||||
if (model.equals(previous)) return;
|
||||
var stack = new ItemStack(Items.PAPER); stack.set(DataComponents.ITEM_MODEL,Identifier.fromNamespaceAndPath("astracontent",model));
|
||||
getSlot(0).set(stack); previous=model;
|
||||
setTransformation(new com.mojang.math.Transformation(new org.joml.Vector3f(),
|
||||
new org.joml.Quaternionf().rotateY(eastWest ? -(float)Math.PI/2 : 0),new org.joml.Vector3f(1),new org.joml.Quaternionf()));
|
||||
}
|
||||
@Override public boolean shouldBeSaved() { return false; }
|
||||
@Override public boolean saveAsPassenger(ValueOutput output) { return false; }
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package online.astradev.content.rail;
|
||||
|
||||
import net.minecraft.core.component.DataComponents;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.network.chat.Component;
|
||||
import net.minecraft.world.item.*;
|
||||
import net.minecraft.world.item.component.CustomData;
|
||||
|
||||
/** Vanilla item, vanilla components: native placement prediction without a client mod. */
|
||||
public final class RailItems {
|
||||
public static final String KEY="astracontent:rail";
|
||||
private RailItems() {}
|
||||
public static RailKind find(ItemStack stack) {
|
||||
if(!stack.is(Items.POWERED_RAIL)) return null;
|
||||
var data=stack.get(DataComponents.CUSTOM_DATA);if(data==null)return null;
|
||||
int value=data.copyTag().getIntOr(KEY,-1);
|
||||
return value>=0 && value<8?RailKind.decode(value):null;
|
||||
}
|
||||
public static ItemStack create(RailKind kind,int count) {
|
||||
var stack=new ItemStack(Items.POWERED_RAIL,count);
|
||||
var tag=new CompoundTag();tag.putInt(KEY,kind.code());stack.set(DataComponents.CUSTOM_DATA,CustomData.of(tag));
|
||||
stack.set(DataComponents.ITEM_MODEL,kind.id());
|
||||
stack.set(DataComponents.ITEM_NAME,Component.translatableWithFallback("item.astracontent."+kind.id().getPath(),name(kind)));
|
||||
return stack;
|
||||
}
|
||||
public static String name(RailKind kind) {
|
||||
return (kind.waxed()?"Вощёные: ":"")+new String[]{"Медные рельсы","Потемневшие медные рельсы","Состаренные медные рельсы","Окисленные медные рельсы"}[kind.age()];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package online.astradev.content.rail;
|
||||
|
||||
import net.minecraft.resources.Identifier;
|
||||
public record RailKind(int age, boolean waxed) {
|
||||
public RailKind { if (age < 0 || age > 3) throw new IllegalArgumentException("Oxidation: " + age); }
|
||||
public int speed() { return 20 - 4 * age; }
|
||||
public int code() { return age + (waxed ? 4 : 0); }
|
||||
public static RailKind decode(int code) { return new RailKind(code & 3, (code & 4) != 0); }
|
||||
public Identifier id() {
|
||||
return Identifier.fromNamespaceAndPath("astracontent", (waxed ? "waxed_" : "")
|
||||
+ new String[]{"", "exposed_", "weathered_", "oxidized_"}[age] + "copper_rail");
|
||||
}
|
||||
public static RailKind fromId(Identifier id) {
|
||||
for (int code = 0; code < 8; code++) if (decode(code).id().equals(id)) return decode(code);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package online.astradev.content.rail;
|
||||
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.world.level.block.WeatheringCopper;
|
||||
import net.minecraft.world.level.gamerules.GameRules;
|
||||
|
||||
/** Match copper's random-tick selection, age neighborhood and oxidation probability. */
|
||||
final class RailOxidation {
|
||||
private RailOxidation() {}
|
||||
static boolean advance(ServerLevel level,BlockPos pos,RailKind kind) {
|
||||
if(kind.waxed() || kind.age()==3 || !level.isPositionEntityTicking(pos))return false;
|
||||
int rate=level.getGameRules().get(GameRules.RANDOM_TICK_SPEED);
|
||||
double chance=1-Math.pow(1-.05688889/4096,rate);
|
||||
if(level.getRandom().nextDouble()>=chance)return false;
|
||||
int older=0,same=0;
|
||||
for(var other:BlockPos.withinManhattan(pos,4,4,4)) {
|
||||
int distance=other.distManhattan(pos);if(distance>4)break;if(distance==0 || !level.hasChunkAt(other))continue;
|
||||
int age=-1;
|
||||
var rail=Rails.find(level,other);
|
||||
if(rail!=null && !rail.waxed())age=rail.age();
|
||||
else if(level.getBlockState(other).getBlock() instanceof WeatheringCopper copper)age=copper.getAge().ordinal();
|
||||
if(age<0)continue;if(age<kind.age())return false;if(age>kind.age())older++;else same++;
|
||||
}
|
||||
double ratio=(older+1.0)/(older+same+1.0);
|
||||
return level.getRandom().nextDouble()<ratio*ratio*(kind.age()==0?.75:1);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package online.astradev.content.rail;
|
||||
|
||||
import java.util.*;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.world.entity.vehicle.minecart.AbstractMinecart;
|
||||
import net.minecraft.world.level.block.*;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.block.state.properties.RailShape;
|
||||
|
||||
public final class RailSpeed {
|
||||
private RailSpeed() {}
|
||||
public static int signalSpeed(int signal) { return Math.clamp(signal,0,15)*2; }
|
||||
public static double target(ServerLevel level, BlockPos pos, double previous) {
|
||||
var state=level.getBlockState(pos);
|
||||
if (!state.is(Blocks.POWERED_RAIL) || !state.getValue(PoweredRailBlock.POWERED)) return previous;
|
||||
var kind=Rails.find(level,pos);
|
||||
return kind != null ? kind.speed() : Math.max(2,signalSpeed(signal(level,pos)));
|
||||
}
|
||||
/** Mirror the vanilla eight-rail power reach, preserving bends, slopes and highest input. */
|
||||
public static int signal(ServerLevel level, BlockPos origin) {
|
||||
record Step(BlockPos pos,int distance) {}
|
||||
var queue=new ArrayDeque<Step>(); var seen=new HashSet<BlockPos>(); queue.add(new Step(origin,0));
|
||||
int best=0;
|
||||
while(!queue.isEmpty()) {
|
||||
var step=queue.removeFirst(); if(!seen.add(step.pos) || !level.hasChunkAt(step.pos)) continue;
|
||||
var state=level.getBlockState(step.pos);
|
||||
if (!state.is(Blocks.POWERED_RAIL)) continue;
|
||||
best=Math.max(best,level.getBestNeighborSignal(step.pos)); if(best==15) return best;
|
||||
if(step.distance==8) continue;
|
||||
var shape=state.getValue(PoweredRailBlock.SHAPE);
|
||||
var exits=AbstractMinecart.exits(shape);
|
||||
for(var exit:List.of(exits.getFirst(),exits.getSecond())) {
|
||||
var adjacent=step.pos.offset(exit.getX(),shape.isSlope()?exit.getY()+1:0,exit.getZ());
|
||||
for(var candidate:List.of(adjacent,adjacent.below())) {
|
||||
if(!level.hasChunkAt(candidate)) continue;
|
||||
var other=level.getBlockState(candidate);
|
||||
if(other.is(Blocks.POWERED_RAIL) && connected(step.pos,shape,candidate,other.getValue(PoweredRailBlock.SHAPE)))
|
||||
queue.add(new Step(candidate,step.distance+1));
|
||||
}
|
||||
}
|
||||
}
|
||||
return best;
|
||||
}
|
||||
private static boolean connected(BlockPos a,RailShape sa,BlockPos b,RailShape sb) {
|
||||
var ea=AbstractMinecart.exits(sa); var eb=AbstractMinecart.exits(sb);
|
||||
for(var x:List.of(ea.getFirst(),ea.getSecond())) for(var y:List.of(eb.getFirst(),eb.getSecond()))
|
||||
if(a.getX()+x.getX()==b.getX() && a.getZ()+x.getZ()==b.getZ()
|
||||
&& b.getX()+y.getX()==a.getX() && b.getZ()+y.getZ()==a.getZ()
|
||||
&& a.getY()+(sa.isSlope()?x.getY()+1:0)==b.getY()+(sb.isSlope()?y.getY()+1:0)) return true;
|
||||
return false;
|
||||
}
|
||||
/** Old movement needs vanilla speed when approaching bends, slopes or the end of a track. */
|
||||
public static double safeLimit(AbstractMinecart cart,ServerLevel level,double limit) {
|
||||
if(AbstractMinecart.useExperimentalMovement(level) || limit<=.4) return limit;
|
||||
var pos=cart.getCurrentBlockPosOrRailBelow(); var movement=cart.getDeltaMovement();
|
||||
int dx=(int)Math.signum(movement.x), dz=(int)Math.signum(movement.z);
|
||||
for(int i=0;i<=2;i++) {
|
||||
var check=pos.offset(dx*i,0,dz*i);
|
||||
if(!level.hasChunkAt(check)) return .4;
|
||||
BlockState state=level.getBlockState(check);
|
||||
if(!(state.getBlock() instanceof BaseRailBlock rail)) return .4;
|
||||
RailShape shape=rail.getRailDirection(state,level,check,cart);
|
||||
if(shape!=RailShape.NORTH_SOUTH && shape!=RailShape.EAST_WEST) return .4;
|
||||
if (i>0 && (state.is(Blocks.DETECTOR_RAIL) || state.is(Blocks.ACTIVATOR_RAIL)
|
||||
|| state.is(Blocks.POWERED_RAIL) && !state.getValue(PoweredRailBlock.POWERED))) return .4;
|
||||
// Never jump over a single slower regulator.
|
||||
if (i>0) limit=Math.min(limit,target(level,check,limit*20)/20);
|
||||
}
|
||||
return limit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
package online.astradev.content.rail;
|
||||
|
||||
import com.mojang.serialization.Codec;
|
||||
import java.util.*;
|
||||
import java.util.function.Supplier;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.world.InteractionResult;
|
||||
import net.minecraft.world.item.*;
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.chunk.LevelChunk;
|
||||
import net.neoforged.bus.api.*;
|
||||
import net.neoforged.neoforge.attachment.AttachmentType;
|
||||
import net.neoforged.neoforge.registries.*;
|
||||
import net.neoforged.neoforge.event.level.ChunkEvent;
|
||||
import net.neoforged.neoforge.event.entity.player.PlayerInteractEvent;
|
||||
import net.neoforged.neoforge.event.tick.ServerTickEvent;
|
||||
import net.neoforged.neoforge.event.server.ServerStoppedEvent;
|
||||
|
||||
/** Native powered rails own placement, shape, redstone, collision and destruction. */
|
||||
public final class Rails {
|
||||
private static final DeferredRegister<AttachmentType<?>> TYPES = DeferredRegister.create(NeoForgeRegistries.Keys.ATTACHMENT_TYPES, "astracontent");
|
||||
public static final Supplier<AttachmentType<Map<Long, Integer>>> DATA = TYPES.register("copper_rails", () ->
|
||||
AttachmentType.<Map<Long,Integer>>builder(() -> new HashMap<>()).serialize(
|
||||
Codec.unboundedMap(Codec.STRING.xmap(Long::parseLong, String::valueOf), Codec.intRange(0,7))
|
||||
.xmap(map -> (Map<Long,Integer>)new HashMap<>(map), map -> map).fieldOf("rails"), map -> !map.isEmpty()).build());
|
||||
private record Position(ServerLevel level, BlockPos pos) {}
|
||||
private record Removed(RailKind kind, long tick) {}
|
||||
private static final Map<Position,RailDisplay> ACTIVE = new HashMap<>();
|
||||
private static final Map<Position,Removed> REMOVED = new HashMap<>();
|
||||
private Rails() {}
|
||||
public static void register(IEventBus bus) { TYPES.register(bus); }
|
||||
public static RailKind find(ServerLevel level, BlockPos pos) {
|
||||
var chunk = level.getChunkSource().getChunkNow(pos.getX() >> 4, pos.getZ() >> 4);
|
||||
if (chunk == null || !chunk.hasData(DATA)) return null;
|
||||
Integer code = chunk.getData(DATA).get(pos.asLong());
|
||||
return code == null ? null : RailKind.decode(code);
|
||||
}
|
||||
public static RailKind loot(ServerLevel level, BlockPos pos) {
|
||||
var kind = find(level,pos);
|
||||
var removed = REMOVED.get(new Position(level,pos));
|
||||
return kind != null ? kind : removed != null && removed.tick == level.getGameTime() ? removed.kind : null;
|
||||
}
|
||||
public static ItemStack stack(RailKind kind, int count) { return RailItems.create(kind,count); }
|
||||
public static void placed(ServerLevel level, BlockPos pos, ItemStack stack) {
|
||||
clear(level,pos); REMOVED.remove(new Position(level,pos));
|
||||
var kind = RailItems.find(stack);
|
||||
if (kind != null) put(level,pos,kind);
|
||||
}
|
||||
public static void put(ServerLevel level, BlockPos pos, RailKind kind) {
|
||||
var chunk = level.getChunkAt(pos); chunk.getData(DATA).put(pos.asLong(),kind.code()); chunk.markUnsaved();
|
||||
ACTIVE.putIfAbsent(new Position(level,pos.immutable()), null);
|
||||
}
|
||||
public static void changed(ServerLevel level, BlockPos pos, BlockState before, BlockState after) {
|
||||
if (before == null || !before.is(Blocks.POWERED_RAIL) || after.is(Blocks.POWERED_RAIL)) return;
|
||||
var kind = find(level,pos);
|
||||
if (kind != null) { REMOVED.put(new Position(level,pos.immutable()),new Removed(kind,level.getGameTime())); clear(level,pos); }
|
||||
}
|
||||
private static void clear(ServerLevel level, BlockPos pos) {
|
||||
var chunk = level.getChunkSource().getChunkNow(pos.getX() >> 4,pos.getZ() >> 4);
|
||||
if (chunk != null && chunk.hasData(DATA) && chunk.getData(DATA).remove(pos.asLong()) != null) chunk.markUnsaved();
|
||||
var display = ACTIVE.remove(new Position(level,pos)); if (display != null) display.discard();
|
||||
}
|
||||
@SubscribeEvent public static void load(ChunkEvent.Load event) {
|
||||
if (!(event.getLevel() instanceof ServerLevel level) || !(event.getChunk() instanceof LevelChunk chunk)) return;
|
||||
level.getServer().execute(() -> {
|
||||
if (level.getChunkSource().getChunkNow(chunk.getPos().x(),chunk.getPos().z()) != chunk || !chunk.hasData(DATA)) return;
|
||||
chunk.getData(DATA).forEach((packed,code) -> {
|
||||
var pos = BlockPos.of(packed);
|
||||
if (pos.getX() >> 4 == chunk.getPos().x() && pos.getZ() >> 4 == chunk.getPos().z())
|
||||
ACTIVE.putIfAbsent(new Position(level,pos),null);
|
||||
});
|
||||
});
|
||||
}
|
||||
@SubscribeEvent public static void unload(ChunkEvent.Unload event) {
|
||||
for (var key : new ArrayList<>(ACTIVE.keySet())) if (key.level == event.getLevel()
|
||||
&& key.pos.getX() >> 4 == event.getChunk().getPos().x() && key.pos.getZ() >> 4 == event.getChunk().getPos().z()) {
|
||||
var display = ACTIVE.remove(key); if (display != null) display.discard();
|
||||
}
|
||||
}
|
||||
@SubscribeEvent public static void stopped(ServerStoppedEvent event) {
|
||||
ACTIVE.values().stream().filter(Objects::nonNull).forEach(RailDisplay::discard); ACTIVE.clear(); REMOVED.clear();
|
||||
}
|
||||
@SubscribeEvent public static void tick(ServerTickEvent.Post event) {
|
||||
for (var key : new ArrayList<>(ACTIVE.keySet())) {
|
||||
var state = key.level.getBlockState(key.pos); var kind = find(key.level,key.pos);
|
||||
if (kind == null || !state.is(Blocks.POWERED_RAIL)) { clear(key.level,key.pos); continue; }
|
||||
if (RailOxidation.advance(key.level,key.pos,kind)) {
|
||||
kind = new RailKind(kind.age()+1,false); put(key.level,key.pos,kind);
|
||||
}
|
||||
var display = ACTIVE.get(key);
|
||||
if (display == null || display.isRemoved()) {
|
||||
display = new RailDisplay(key.level,key.pos); display.update(kind,state);
|
||||
if (key.level.addFreshEntity(display)) ACTIVE.put(key,display);
|
||||
} else display.update(kind,state);
|
||||
}
|
||||
REMOVED.entrySet().removeIf(entry -> entry.getValue().tick < entry.getKey().level.getGameTime());
|
||||
}
|
||||
@SubscribeEvent public static void use(PlayerInteractEvent.RightClickBlock event) {
|
||||
if (!(event.getLevel() instanceof ServerLevel level)) return;
|
||||
var kind = find(level,event.getPos()); if (kind == null) return;
|
||||
var item = event.getItemStack(); RailKind next;
|
||||
int effect;
|
||||
if (item.is(Items.HONEYCOMB) && !kind.waxed()) { next = new RailKind(kind.age(),true); effect=3003; }
|
||||
else if (item.getItem() instanceof AxeItem && (kind.waxed() || kind.age()>0)) {
|
||||
next = kind.waxed() ? new RailKind(kind.age(),false) : new RailKind(kind.age()-1,false); effect=kind.waxed()?3004:3005;
|
||||
} else return;
|
||||
if (!event.getEntity().mayBuild()) return;
|
||||
put(level,event.getPos(),next); level.levelEvent(null,effect,event.getPos(),0);
|
||||
if (item.is(Items.HONEYCOMB)) item.consume(1,event.getEntity());
|
||||
else item.hurtAndBreak(1,event.getEntity(),event.getHand().asEquipmentSlot());
|
||||
event.setCanceled(true); event.setCancellationResult(InteractionResult.SUCCESS);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package online.astradev.content.weapon;
|
||||
|
||||
import net.minecraft.core.component.DataComponents;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.sounds.*;
|
||||
import net.minecraft.stats.Stats;
|
||||
import net.minecraft.world.InteractionResult;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.projectile.Projectile;
|
||||
import net.minecraft.world.entity.projectile.hurtingprojectile.SmallFireball;
|
||||
import net.minecraft.world.entity.projectile.throwableitemprojectile.*;
|
||||
import net.minecraft.world.entity.projectile.hurtingprojectile.windcharge.WindCharge;
|
||||
import net.minecraft.world.item.*;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.neoforged.bus.api.SubscribeEvent;
|
||||
import net.neoforged.neoforge.event.entity.player.PlayerInteractEvent;
|
||||
|
||||
public final class Ammunition {
|
||||
private Ammunition() {}
|
||||
public static boolean accepts(ItemStack stack) {
|
||||
return stack.is(Items.ENDER_PEARL) || stack.is(Items.FIRE_CHARGE) || stack.is(Items.ENDER_EYE)
|
||||
|| stack.getItem() instanceof EggItem || stack.is(Items.SNOWBALL) || stack.is(Items.WIND_CHARGE)
|
||||
|| stack.is(Items.EXPERIENCE_BOTTLE) || stack.is(Items.TNT);
|
||||
}
|
||||
public static Projectile create(Level level, LivingEntity owner, ItemStack ammo) {
|
||||
if (ammo.is(Items.ENDER_PEARL)) return new ThrownEnderpearl(level, owner, ammo);
|
||||
if (ammo.getItem() instanceof EggItem) return new ThrownEgg(level, owner, ammo);
|
||||
if (ammo.is(Items.SNOWBALL)) return new Snowball(level, owner, ammo);
|
||||
if (ammo.is(Items.EXPERIENCE_BOTTLE)) return new ThrownExperienceBottle(level, owner, ammo);
|
||||
if (ammo.is(Items.FIRE_CHARGE)) {
|
||||
var fire = new SmallFireball(level, owner, owner.getLookAngle());
|
||||
fire.setPos(owner.getX(), owner.getEyeY() - .15, owner.getZ()); fire.setItem(ammo); return fire;
|
||||
}
|
||||
if (ammo.is(Items.WIND_CHARGE)) {
|
||||
var wind = new WindCharge(level, owner.getX(), owner.getEyeY() - .15, owner.getZ(), owner.getLookAngle());
|
||||
wind.setOwner(owner); return wind;
|
||||
}
|
||||
if (ammo.is(Items.TNT) || ammo.is(Items.ENDER_EYE)) return new PayloadProjectile(level, owner, ammo);
|
||||
return null;
|
||||
}
|
||||
@SubscribeEvent public static void fireCharge(PlayerInteractEvent.RightClickItem event) {
|
||||
if (!(event.getLevel() instanceof ServerLevel level) || !event.getItemStack().is(Items.FIRE_CHARGE)) return;
|
||||
var player = event.getEntity(); var stack = event.getItemStack();
|
||||
if (player.getCooldowns().isOnCooldown(stack)) return;
|
||||
var fire = create(level, player, stack);
|
||||
Projectile.spawnProjectile(fire, level, stack, shot -> shot.shootFromRotation(player, player.getXRot(), player.getYRot(), 0, 1.5f, 1));
|
||||
level.playSound(null, player.blockPosition(), SoundEvents.FIRECHARGE_USE, SoundSource.PLAYERS, 1, 1);
|
||||
player.getCooldowns().addCooldown(stack, 10);
|
||||
player.awardStat(Stats.ITEM_USED.get(stack.getItem()));
|
||||
stack.consume(1, player);
|
||||
event.setCanceled(true); event.setCancellationResult(InteractionResult.SUCCESS);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package online.astradev.content.weapon;
|
||||
|
||||
import net.minecraft.core.component.DataComponents;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.tags.StructureTags;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.item.PrimedTnt;
|
||||
import net.minecraft.world.entity.projectile.EyeOfEnder;
|
||||
import net.minecraft.world.entity.projectile.throwableitemprojectile.Snowball;
|
||||
import net.minecraft.world.item.*;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
|
||||
/** One-tick shooting adapter; the payload itself is a vanilla entity understood by every client. */
|
||||
public final class PayloadProjectile extends Snowball {
|
||||
public static final String NO_EYE_DROP = "astracontent:no_eye_drop";
|
||||
public PayloadProjectile(Level level, LivingEntity owner, ItemStack stack) { super(level, owner, stack); }
|
||||
@Override public void tick() {
|
||||
if (!(level() instanceof ServerLevel level)) return;
|
||||
if (getItem().is(Items.TNT)) {
|
||||
var tnt = new PrimedTnt(level, getX(), getY(), getZ(), getOwner() instanceof LivingEntity living ? living : null);
|
||||
tnt.setDeltaMovement(getDeltaMovement()); level.addFreshEntity(tnt);
|
||||
} else {
|
||||
var target = level.findNearestMapStructure(StructureTags.EYE_OF_ENDER_LOCATED, blockPosition(), 100, false);
|
||||
if (target != null) {
|
||||
var eye = new EyeOfEnder(level, getX(), getY(), getZ());
|
||||
eye.setItem(getItem());
|
||||
if (getItem().has(DataComponents.INTANGIBLE_PROJECTILE)) eye.addTag(NO_EYE_DROP);
|
||||
eye.signalTo(Vec3.atLowerCornerOf(target)); eye.setDeltaMovement(getDeltaMovement()); level.addFreshEntity(eye);
|
||||
} else if (!getItem().has(DataComponents.INTANGIBLE_PROJECTILE)) spawnAtLocation(level, getItem().copyWithCount(1));
|
||||
}
|
||||
discard();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
public net.minecraft.world.entity.Display setTransformation(Lcom/mojang/math/Transformation;)V
|
||||
public net.minecraft.world.entity.Display$ItemDisplay setItemTransform(Lnet/minecraft/world/item/ItemDisplayContext;)V
|
||||
@@ -0,0 +1,26 @@
|
||||
modLoader="javafml"
|
||||
loaderVersion="[11,)"
|
||||
license="All Rights Reserved"
|
||||
[[mods]]
|
||||
modId="astracontent"
|
||||
version="${version}"
|
||||
displayName="AstraContent"
|
||||
description='''Server-only crossbow ammunition and copper rails. Vanilla clients supported.'''
|
||||
[[mixins]]
|
||||
config="astracontent.mixins.json"
|
||||
[[dependencies.astracontent]]
|
||||
modId="neoforge"
|
||||
type="required"
|
||||
versionRange="[26.2.0.79,26.3)"
|
||||
side="SERVER"
|
||||
[[dependencies.astracontent]]
|
||||
modId="minecraft"
|
||||
type="required"
|
||||
versionRange="[26.2,26.3)"
|
||||
side="SERVER"
|
||||
[[dependencies.astracontent]]
|
||||
modId="astraplus"
|
||||
type="required"
|
||||
versionRange="[0.5.0,0.6)"
|
||||
ordering="AFTER"
|
||||
side="SERVER"
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "online.astradev.content.mixin",
|
||||
"compatibilityLevel": "JAVA_25",
|
||||
"mixins": ["CrossbowMixin", "RailBlockMixin", "RailChunkMixin", "MinecartMixin", "PayloadMixin", "ExperimentalCartMixin", "FurnaceCartMixin"],
|
||||
"injectors": {"defaultRequire": 1}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"criteria": {
|
||||
"copper": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": "minecraft:copper_ingot"
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
}
|
||||
},
|
||||
"requirements": [
|
||||
[
|
||||
"copper"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"astracontent:copper_rail"
|
||||
]
|
||||
},
|
||||
"parent": "minecraft:recipes/root"
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"key": {
|
||||
"X": "minecraft:copper_ingot",
|
||||
"R": "minecraft:redstone",
|
||||
"#": "minecraft:stick"
|
||||
},
|
||||
"pattern": [
|
||||
"X X",
|
||||
"X#X",
|
||||
"XRX"
|
||||
],
|
||||
"result": {
|
||||
"components": {
|
||||
"minecraft:custom_data": {
|
||||
"astracontent:rail": 0
|
||||
},
|
||||
"minecraft:item_name": {
|
||||
"translate": "item.astracontent.copper_rail",
|
||||
"fallback": "Медные рельсы"
|
||||
},
|
||||
"minecraft:item_model": "astracontent:copper_rail"
|
||||
},
|
||||
"id": "minecraft:powered_rail",
|
||||
"count": 6
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
resources/assets/astracontent/items/copper_rail.json
|
||||
resources/assets/astracontent/items/exposed_copper_rail.json
|
||||
resources/assets/astracontent/items/oxidized_copper_rail.json
|
||||
resources/assets/astracontent/items/rail_display/0/ascending_east_on.json
|
||||
resources/assets/astracontent/items/rail_display/0/ascending_east.json
|
||||
resources/assets/astracontent/items/rail_display/0/ascending_north_on.json
|
||||
resources/assets/astracontent/items/rail_display/0/ascending_north.json
|
||||
resources/assets/astracontent/items/rail_display/0/ascending_south_on.json
|
||||
resources/assets/astracontent/items/rail_display/0/ascending_south.json
|
||||
resources/assets/astracontent/items/rail_display/0/ascending_west_on.json
|
||||
resources/assets/astracontent/items/rail_display/0/ascending_west.json
|
||||
resources/assets/astracontent/items/rail_display/0/east_west_on.json
|
||||
resources/assets/astracontent/items/rail_display/0/east_west.json
|
||||
resources/assets/astracontent/items/rail_display/0/north_south_on.json
|
||||
resources/assets/astracontent/items/rail_display/0/north_south.json
|
||||
resources/assets/astracontent/items/rail_display/1/ascending_east_on.json
|
||||
resources/assets/astracontent/items/rail_display/1/ascending_east.json
|
||||
resources/assets/astracontent/items/rail_display/1/ascending_north_on.json
|
||||
resources/assets/astracontent/items/rail_display/1/ascending_north.json
|
||||
resources/assets/astracontent/items/rail_display/1/ascending_south_on.json
|
||||
resources/assets/astracontent/items/rail_display/1/ascending_south.json
|
||||
resources/assets/astracontent/items/rail_display/1/ascending_west_on.json
|
||||
resources/assets/astracontent/items/rail_display/1/ascending_west.json
|
||||
resources/assets/astracontent/items/rail_display/1/east_west_on.json
|
||||
resources/assets/astracontent/items/rail_display/1/east_west.json
|
||||
resources/assets/astracontent/items/rail_display/1/north_south_on.json
|
||||
resources/assets/astracontent/items/rail_display/1/north_south.json
|
||||
resources/assets/astracontent/items/rail_display/2/ascending_east_on.json
|
||||
resources/assets/astracontent/items/rail_display/2/ascending_east.json
|
||||
resources/assets/astracontent/items/rail_display/2/ascending_north_on.json
|
||||
resources/assets/astracontent/items/rail_display/2/ascending_north.json
|
||||
resources/assets/astracontent/items/rail_display/2/ascending_south_on.json
|
||||
resources/assets/astracontent/items/rail_display/2/ascending_south.json
|
||||
resources/assets/astracontent/items/rail_display/2/ascending_west_on.json
|
||||
resources/assets/astracontent/items/rail_display/2/ascending_west.json
|
||||
resources/assets/astracontent/items/rail_display/2/east_west_on.json
|
||||
resources/assets/astracontent/items/rail_display/2/east_west.json
|
||||
resources/assets/astracontent/items/rail_display/2/north_south_on.json
|
||||
resources/assets/astracontent/items/rail_display/2/north_south.json
|
||||
resources/assets/astracontent/items/rail_display/3/ascending_east_on.json
|
||||
resources/assets/astracontent/items/rail_display/3/ascending_east.json
|
||||
resources/assets/astracontent/items/rail_display/3/ascending_north_on.json
|
||||
resources/assets/astracontent/items/rail_display/3/ascending_north.json
|
||||
resources/assets/astracontent/items/rail_display/3/ascending_south_on.json
|
||||
resources/assets/astracontent/items/rail_display/3/ascending_south.json
|
||||
resources/assets/astracontent/items/rail_display/3/ascending_west_on.json
|
||||
resources/assets/astracontent/items/rail_display/3/ascending_west.json
|
||||
resources/assets/astracontent/items/rail_display/3/east_west_on.json
|
||||
resources/assets/astracontent/items/rail_display/3/east_west.json
|
||||
resources/assets/astracontent/items/rail_display/3/north_south_on.json
|
||||
resources/assets/astracontent/items/rail_display/3/north_south.json
|
||||
resources/assets/astracontent/items/waxed_copper_rail.json
|
||||
resources/assets/astracontent/items/waxed_exposed_copper_rail.json
|
||||
resources/assets/astracontent/items/waxed_oxidized_copper_rail.json
|
||||
resources/assets/astracontent/items/waxed_weathered_copper_rail.json
|
||||
resources/assets/astracontent/items/weathered_copper_rail.json
|
||||
resources/assets/astracontent/lang/en_us.json
|
||||
resources/assets/astracontent/lang/ru_ru.json
|
||||
resources/assets/astracontent/models/item/copper_rail.json
|
||||
resources/assets/astracontent/models/item/exposed_copper_rail.json
|
||||
resources/assets/astracontent/models/item/oxidized_copper_rail.json
|
||||
resources/assets/astracontent/models/item/waxed_copper_rail.json
|
||||
resources/assets/astracontent/models/item/waxed_exposed_copper_rail.json
|
||||
resources/assets/astracontent/models/item/waxed_oxidized_copper_rail.json
|
||||
resources/assets/astracontent/models/item/waxed_weathered_copper_rail.json
|
||||
resources/assets/astracontent/models/item/weathered_copper_rail.json
|
||||
resources/assets/astracontent/models/rail_display/0/ascending_east_on.json
|
||||
resources/assets/astracontent/models/rail_display/0/ascending_east.json
|
||||
resources/assets/astracontent/models/rail_display/0/ascending_north_on.json
|
||||
resources/assets/astracontent/models/rail_display/0/ascending_north.json
|
||||
resources/assets/astracontent/models/rail_display/0/ascending_south_on.json
|
||||
resources/assets/astracontent/models/rail_display/0/ascending_south.json
|
||||
resources/assets/astracontent/models/rail_display/0/ascending_west_on.json
|
||||
resources/assets/astracontent/models/rail_display/0/ascending_west.json
|
||||
resources/assets/astracontent/models/rail_display/0/east_west_on.json
|
||||
resources/assets/astracontent/models/rail_display/0/east_west.json
|
||||
resources/assets/astracontent/models/rail_display/0/north_south_on.json
|
||||
resources/assets/astracontent/models/rail_display/0/north_south.json
|
||||
resources/assets/astracontent/models/rail_display/1/ascending_east_on.json
|
||||
resources/assets/astracontent/models/rail_display/1/ascending_east.json
|
||||
resources/assets/astracontent/models/rail_display/1/ascending_north_on.json
|
||||
resources/assets/astracontent/models/rail_display/1/ascending_north.json
|
||||
resources/assets/astracontent/models/rail_display/1/ascending_south_on.json
|
||||
resources/assets/astracontent/models/rail_display/1/ascending_south.json
|
||||
resources/assets/astracontent/models/rail_display/1/ascending_west_on.json
|
||||
resources/assets/astracontent/models/rail_display/1/ascending_west.json
|
||||
resources/assets/astracontent/models/rail_display/1/east_west_on.json
|
||||
resources/assets/astracontent/models/rail_display/1/east_west.json
|
||||
resources/assets/astracontent/models/rail_display/1/north_south_on.json
|
||||
resources/assets/astracontent/models/rail_display/1/north_south.json
|
||||
resources/assets/astracontent/models/rail_display/2/ascending_east_on.json
|
||||
resources/assets/astracontent/models/rail_display/2/ascending_east.json
|
||||
resources/assets/astracontent/models/rail_display/2/ascending_north_on.json
|
||||
resources/assets/astracontent/models/rail_display/2/ascending_north.json
|
||||
resources/assets/astracontent/models/rail_display/2/ascending_south_on.json
|
||||
resources/assets/astracontent/models/rail_display/2/ascending_south.json
|
||||
resources/assets/astracontent/models/rail_display/2/ascending_west_on.json
|
||||
resources/assets/astracontent/models/rail_display/2/ascending_west.json
|
||||
resources/assets/astracontent/models/rail_display/2/east_west_on.json
|
||||
resources/assets/astracontent/models/rail_display/2/east_west.json
|
||||
resources/assets/astracontent/models/rail_display/2/north_south_on.json
|
||||
resources/assets/astracontent/models/rail_display/2/north_south.json
|
||||
resources/assets/astracontent/models/rail_display/3/ascending_east_on.json
|
||||
resources/assets/astracontent/models/rail_display/3/ascending_east.json
|
||||
resources/assets/astracontent/models/rail_display/3/ascending_north_on.json
|
||||
resources/assets/astracontent/models/rail_display/3/ascending_north.json
|
||||
resources/assets/astracontent/models/rail_display/3/ascending_south_on.json
|
||||
resources/assets/astracontent/models/rail_display/3/ascending_south.json
|
||||
resources/assets/astracontent/models/rail_display/3/ascending_west_on.json
|
||||
resources/assets/astracontent/models/rail_display/3/ascending_west.json
|
||||
resources/assets/astracontent/models/rail_display/3/east_west_on.json
|
||||
resources/assets/astracontent/models/rail_display/3/east_west.json
|
||||
resources/assets/astracontent/models/rail_display/3/north_south_on.json
|
||||
resources/assets/astracontent/models/rail_display/3/north_south.json
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:item/copper_rail",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:item/exposed_copper_rail",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:item/oxidized_copper_rail",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/0/ascending_east",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/0/ascending_east_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/0/ascending_north",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/0/ascending_north_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/0/ascending_south",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/0/ascending_south_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/0/ascending_west",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/0/ascending_west_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/0/east_west",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/0/east_west_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/0/north_south",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/0/north_south_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/1/ascending_east",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/1/ascending_east_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/1/ascending_north",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/1/ascending_north_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/1/ascending_south",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/1/ascending_south_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/1/ascending_west",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/1/ascending_west_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/1/east_west",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/1/east_west_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/1/north_south",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/1/north_south_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/2/ascending_east",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/2/ascending_east_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/2/ascending_north",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/2/ascending_north_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/2/ascending_south",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/2/ascending_south_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/2/ascending_west",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/2/ascending_west_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/2/east_west",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/2/east_west_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/2/north_south",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/2/north_south_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/3/ascending_east",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/3/ascending_east_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/3/ascending_north",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/3/ascending_north_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/3/ascending_south",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/3/ascending_south_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/3/ascending_west",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/3/ascending_west_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/3/east_west",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/3/east_west_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/3/north_south",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:rail_display/3/north_south_on",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:item/waxed_copper_rail",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:item/waxed_exposed_copper_rail",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:item/waxed_oxidized_copper_rail",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:item/waxed_weathered_copper_rail",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"model": "astracontent:item/weathered_copper_rail",
|
||||
"type": "minecraft:model"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"item.astracontent.waxed_oxidized_copper_rail": "Waxed Oxidized Copper Rail",
|
||||
"item.astracontent.waxed_exposed_copper_rail": "Waxed Exposed Copper Rail",
|
||||
"item.astracontent.waxed_copper_rail": "Waxed Copper Rail",
|
||||
"item.astracontent.copper_rail": "Copper Rail",
|
||||
"item.astracontent.waxed_weathered_copper_rail": "Waxed Weathered Copper Rail",
|
||||
"item.astracontent.oxidized_copper_rail": "Oxidized Copper Rail",
|
||||
"item.astracontent.weathered_copper_rail": "Weathered Copper Rail",
|
||||
"item.astracontent.exposed_copper_rail": "Exposed Copper Rail"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"item.astracontent.waxed_oxidized_copper_rail": "Вощёные: Окисленные медные рельсы",
|
||||
"item.astracontent.waxed_exposed_copper_rail": "Вощёные: Потемневшие медные рельсы",
|
||||
"item.astracontent.waxed_copper_rail": "Вощёные: Медные рельсы",
|
||||
"item.astracontent.copper_rail": "Медные рельсы",
|
||||
"item.astracontent.waxed_weathered_copper_rail": "Вощёные: Состаренные медные рельсы",
|
||||
"item.astracontent.oxidized_copper_rail": "Окисленные медные рельсы",
|
||||
"item.astracontent.weathered_copper_rail": "Состаренные медные рельсы",
|
||||
"item.astracontent.exposed_copper_rail": "Потемневшие медные рельсы"
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"ambientocclusion": false,
|
||||
"elements": [
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
0,
|
||||
1.04,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
1.04,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
2,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
4,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
12,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
14,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
}
|
||||
],
|
||||
"display": {
|
||||
"fixed": {
|
||||
"rotation": [
|
||||
90,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"gui": {
|
||||
"scale": [
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"rotation": [
|
||||
35,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"translation": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"textures": {
|
||||
"copper": "minecraft:block/copper_block",
|
||||
"rail": "minecraft:block/powered_rail",
|
||||
"particle": "minecraft:block/copper_block"
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"ambientocclusion": false,
|
||||
"elements": [
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
0,
|
||||
1.04,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
1.04,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
2,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
4,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
12,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
14,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
}
|
||||
],
|
||||
"display": {
|
||||
"fixed": {
|
||||
"rotation": [
|
||||
90,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"gui": {
|
||||
"scale": [
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"rotation": [
|
||||
35,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"translation": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"textures": {
|
||||
"copper": "minecraft:block/exposed_copper",
|
||||
"rail": "minecraft:block/powered_rail",
|
||||
"particle": "minecraft:block/exposed_copper"
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"ambientocclusion": false,
|
||||
"elements": [
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
0,
|
||||
1.04,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
1.04,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
2,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
4,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
12,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
14,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
}
|
||||
],
|
||||
"display": {
|
||||
"fixed": {
|
||||
"rotation": [
|
||||
90,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"gui": {
|
||||
"scale": [
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"rotation": [
|
||||
35,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"translation": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"textures": {
|
||||
"copper": "minecraft:block/oxidized_copper",
|
||||
"rail": "minecraft:block/powered_rail",
|
||||
"particle": "minecraft:block/oxidized_copper"
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"ambientocclusion": false,
|
||||
"elements": [
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
0,
|
||||
1.04,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
1.04,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
2,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
4,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
12,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
14,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
}
|
||||
],
|
||||
"display": {
|
||||
"fixed": {
|
||||
"rotation": [
|
||||
90,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"gui": {
|
||||
"scale": [
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"rotation": [
|
||||
35,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"translation": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"textures": {
|
||||
"copper": "minecraft:block/copper_block",
|
||||
"rail": "minecraft:block/powered_rail",
|
||||
"particle": "minecraft:block/copper_block"
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"ambientocclusion": false,
|
||||
"elements": [
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
0,
|
||||
1.04,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
1.04,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
2,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
4,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
12,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
14,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
}
|
||||
],
|
||||
"display": {
|
||||
"fixed": {
|
||||
"rotation": [
|
||||
90,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"gui": {
|
||||
"scale": [
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"rotation": [
|
||||
35,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"translation": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"textures": {
|
||||
"copper": "minecraft:block/exposed_copper",
|
||||
"rail": "minecraft:block/powered_rail",
|
||||
"particle": "minecraft:block/exposed_copper"
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"ambientocclusion": false,
|
||||
"elements": [
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
0,
|
||||
1.04,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
1.04,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
2,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
4,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
12,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
14,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
}
|
||||
],
|
||||
"display": {
|
||||
"fixed": {
|
||||
"rotation": [
|
||||
90,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"gui": {
|
||||
"scale": [
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"rotation": [
|
||||
35,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"translation": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"textures": {
|
||||
"copper": "minecraft:block/oxidized_copper",
|
||||
"rail": "minecraft:block/powered_rail",
|
||||
"particle": "minecraft:block/oxidized_copper"
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"ambientocclusion": false,
|
||||
"elements": [
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"texture": "#rail"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
0,
|
||||
1.04,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
1.04,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
2,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
4,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
},
|
||||
{
|
||||
"faces": {
|
||||
"up": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
},
|
||||
"down": {
|
||||
"uv": [
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
16
|
||||
],
|
||||
"texture": "#copper"
|
||||
}
|
||||
},
|
||||
"from": [
|
||||
12,
|
||||
1.06,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
14,
|
||||
1.06,
|
||||
16
|
||||
]
|
||||
}
|
||||
],
|
||||
"display": {
|
||||
"fixed": {
|
||||
"rotation": [
|
||||
90,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"gui": {
|
||||
"scale": [
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"rotation": [
|
||||
35,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"translation": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"textures": {
|
||||
"copper": "minecraft:block/weathered_copper",
|
||||
"rail": "minecraft:block/powered_rail",
|
||||
"particle": "minecraft:block/weathered_copper"
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user