Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f79326266a | |||
| 2c4cc90940 | |||
| 33c1b2491e | |||
| 1b1f758639 | |||
| e2fa33fa5f | |||
| d63e4bf8b4 | |||
| 500c25a00e | |||
| b0ce5e588a | |||
| 5e21576347 | |||
| 20719b6d42 | |||
| 0aa1243942 | |||
| fc14404b18 | |||
| 9995ed6965 | |||
| a4aab10b44 | |||
| 6f52afcd13 | |||
| cefcf02415 | |||
| 1eedce3667 | |||
| b856b42500 | |||
| af394094b7 | |||
| 3485db8f2d | |||
| 3c5425d0c4 | |||
| 60f5d27640 | |||
| fb7304ccc4 |
4
.gitattributes
vendored
4
.gitattributes
vendored
@ -1,8 +1,8 @@
|
|||||||
*.blend filter=lfs diff=lfs merge=lfs -text
|
*.blend filter=lfs diff=lfs merge=lfs -text
|
||||||
*.obj filter=lfs diff=lfs merge=lfs -text
|
|
||||||
*.png filter=lfs diff=lfs merge=lfs -text
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
*.jpg filter=lfs diff=lfs merge=lfs -text
|
*.jpg filter=lfs diff=lfs merge=lfs -text
|
||||||
*.kra filter=lfs diff=lfs merge=lfs -text
|
*.obj filter=lfs diff=lfs merge=lfs -text
|
||||||
*.mtl filter=lfs diff=lfs merge=lfs -text
|
*.mtl filter=lfs diff=lfs merge=lfs -text
|
||||||
*.bbmodel filter=lfs diff=lfs merge=lfs -text
|
*.bbmodel filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.kra filter=lfs diff=lfs merge=lfs -text
|
||||||
*.ogg filter=lfs diff=lfs merge=lfs -text
|
*.ogg filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|||||||
227
.gitignore
vendored
227
.gitignore
vendored
@ -1,6 +1,221 @@
|
|||||||
/.gradle/
|
### Assets
|
||||||
/.idea/
|
*.blend?
|
||||||
/build/
|
*~
|
||||||
/run/
|
|
||||||
/src/test/
|
### Java template
|
||||||
/src/generated/resources/.cache/
|
# Compiled class file
|
||||||
|
*.class
|
||||||
|
|
||||||
|
# Log file
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# BlueJ files
|
||||||
|
*.ctxt
|
||||||
|
|
||||||
|
# Mobile Tools for Java (J2ME)
|
||||||
|
.mtj.tmp/
|
||||||
|
|
||||||
|
# Package Files #
|
||||||
|
*.jar
|
||||||
|
*.war
|
||||||
|
*.nar
|
||||||
|
*.ear
|
||||||
|
*.zip
|
||||||
|
*.tar.gz
|
||||||
|
*.rar
|
||||||
|
|
||||||
|
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||||
|
hs_err_pid*
|
||||||
|
replay_pid*
|
||||||
|
|
||||||
|
### JetBrains template
|
||||||
|
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
||||||
|
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||||
|
|
||||||
|
.idea/*
|
||||||
|
|
||||||
|
# Gradle and Maven with auto-import
|
||||||
|
# When using Gradle or Maven with auto-import, you should exclude module files,
|
||||||
|
# since they will be recreated, and may cause churn. Uncomment if using
|
||||||
|
# auto-import.
|
||||||
|
# .idea/artifacts
|
||||||
|
# .idea/compiler.xml
|
||||||
|
# .idea/jarRepositories.xml
|
||||||
|
# .idea/modules.xml
|
||||||
|
# .idea/*.iml
|
||||||
|
# .idea/modules
|
||||||
|
# *.iml
|
||||||
|
# *.ipr
|
||||||
|
|
||||||
|
# CMake
|
||||||
|
cmake-build-*/
|
||||||
|
|
||||||
|
# Mongo Explorer plugin
|
||||||
|
.idea/**/mongoSettings.xml
|
||||||
|
|
||||||
|
# File-based project format
|
||||||
|
*.iws
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
out/
|
||||||
|
|
||||||
|
# mpeltonen/sbt-idea plugin
|
||||||
|
.idea_modules/
|
||||||
|
|
||||||
|
# JIRA plugin
|
||||||
|
atlassian-ide-plugin.xml
|
||||||
|
|
||||||
|
# Cursive Clojure plugin
|
||||||
|
.idea/replstate.xml
|
||||||
|
|
||||||
|
# SonarLint plugin
|
||||||
|
.idea/sonarlint/
|
||||||
|
|
||||||
|
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||||
|
com_crashlytics_export_strings.xml
|
||||||
|
crashlytics.properties
|
||||||
|
crashlytics-build.properties
|
||||||
|
fabric.properties
|
||||||
|
|
||||||
|
# Editor-based Rest Client
|
||||||
|
.idea/httpRequests
|
||||||
|
|
||||||
|
# Android studio 3.1+ serialized cache file
|
||||||
|
.idea/caches/build_file_checksums.ser
|
||||||
|
|
||||||
|
### ForgeGradle template
|
||||||
|
# Minecraft client/server files
|
||||||
|
run/
|
||||||
|
|
||||||
|
### Java template
|
||||||
|
# Compiled class file
|
||||||
|
*.class
|
||||||
|
|
||||||
|
# Log file
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# BlueJ files
|
||||||
|
*.ctxt
|
||||||
|
|
||||||
|
# Mobile Tools for Java (J2ME)
|
||||||
|
.mtj.tmp/
|
||||||
|
|
||||||
|
# Package Files #
|
||||||
|
*.jar
|
||||||
|
*.war
|
||||||
|
*.nar
|
||||||
|
*.ear
|
||||||
|
*.zip
|
||||||
|
*.tar.gz
|
||||||
|
*.rar
|
||||||
|
|
||||||
|
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||||
|
hs_err_pid*
|
||||||
|
replay_pid*
|
||||||
|
|
||||||
|
### JetBrains template
|
||||||
|
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
||||||
|
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||||
|
|
||||||
|
# User-specific stuff
|
||||||
|
.idea/**/workspace.xml
|
||||||
|
.idea/**/tasks.xml
|
||||||
|
.idea/**/usage.statistics.xml
|
||||||
|
.idea/**/dictionaries
|
||||||
|
.idea/**/shelf
|
||||||
|
|
||||||
|
# AWS User-specific
|
||||||
|
.idea/**/aws.xml
|
||||||
|
|
||||||
|
# Generated files
|
||||||
|
.idea/**/contentModel.xml
|
||||||
|
|
||||||
|
# Sensitive or high-churn files
|
||||||
|
.idea/**/dataSources/
|
||||||
|
.idea/**/dataSources.ids
|
||||||
|
.idea/**/dataSources.local.xml
|
||||||
|
.idea/**/sqlDataSources.xml
|
||||||
|
.idea/**/dynamic.xml
|
||||||
|
.idea/**/uiDesigner.xml
|
||||||
|
.idea/**/dbnavigator.xml
|
||||||
|
|
||||||
|
# Gradle
|
||||||
|
.idea/**/gradle.xml
|
||||||
|
.idea/**/libraries
|
||||||
|
|
||||||
|
# Gradle and Maven with auto-import
|
||||||
|
# When using Gradle or Maven with auto-import, you should exclude module files,
|
||||||
|
# since they will be recreated, and may cause churn. Uncomment if using
|
||||||
|
# auto-import.
|
||||||
|
# .idea/artifacts
|
||||||
|
# .idea/compiler.xml
|
||||||
|
# .idea/jarRepositories.xml
|
||||||
|
# .idea/modules.xml
|
||||||
|
# .idea/*.iml
|
||||||
|
# .idea/modules
|
||||||
|
# *.iml
|
||||||
|
# *.ipr
|
||||||
|
|
||||||
|
# CMake
|
||||||
|
cmake-build-*/
|
||||||
|
|
||||||
|
# Mongo Explorer plugin
|
||||||
|
.idea/**/mongoSettings.xml
|
||||||
|
|
||||||
|
# File-based project format
|
||||||
|
*.iws
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
out/
|
||||||
|
|
||||||
|
# mpeltonen/sbt-idea plugin
|
||||||
|
.idea_modules/
|
||||||
|
|
||||||
|
# JIRA plugin
|
||||||
|
atlassian-ide-plugin.xml
|
||||||
|
|
||||||
|
# Cursive Clojure plugin
|
||||||
|
.idea/replstate.xml
|
||||||
|
|
||||||
|
# SonarLint plugin
|
||||||
|
.idea/sonarlint/
|
||||||
|
|
||||||
|
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||||
|
com_crashlytics_export_strings.xml
|
||||||
|
crashlytics.properties
|
||||||
|
crashlytics-build.properties
|
||||||
|
fabric.properties
|
||||||
|
|
||||||
|
# Editor-based Rest Client
|
||||||
|
.idea/httpRequests
|
||||||
|
|
||||||
|
# Android studio 3.1+ serialized cache file
|
||||||
|
.idea/caches/build_file_checksums.ser
|
||||||
|
|
||||||
|
### ForgeGradle template
|
||||||
|
# Minecraft client/server files
|
||||||
|
run/
|
||||||
|
|
||||||
|
### Gradle template
|
||||||
|
.gradle
|
||||||
|
**/build/
|
||||||
|
!src/**/build/
|
||||||
|
|
||||||
|
# Ignore Gradle GUI config
|
||||||
|
gradle-app.setting
|
||||||
|
|
||||||
|
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
|
||||||
|
!gradle-wrapper.jar
|
||||||
|
|
||||||
|
# Avoid ignore Gradle wrappper properties
|
||||||
|
!gradle-wrapper.properties
|
||||||
|
|
||||||
|
# Cache of project
|
||||||
|
.gradletasknamecache
|
||||||
|
|
||||||
|
# Eclipse Gradle plugin generated files
|
||||||
|
# Eclipse Core
|
||||||
|
.project
|
||||||
|
# JDT-specific (Eclipse Java Development Tools)
|
||||||
|
.classpath
|
||||||
|
|
||||||
|
|||||||
61
assets/images/README.md
Normal file
61
assets/images/README.md
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
# Composition guidelines
|
||||||
|
The following are guidelines for rendering image assets.
|
||||||
|
|
||||||
|
## General
|
||||||
|
### Color Management
|
||||||
|
- Filmic - Medium High Contrast
|
||||||
|
|
||||||
|
### World
|
||||||
|
- Global Illumination - 1.0
|
||||||
|
|
||||||
|
### Sun
|
||||||
|
- Strength - 5.0
|
||||||
|
|
||||||
|
### Volume
|
||||||
|
- Fournier-Forand
|
||||||
|
- IOR 1.0
|
||||||
|
- Density 0.01
|
||||||
|
|
||||||
|
## Icon
|
||||||
|
400 x 400 RGBA PNG
|
||||||
|
|
||||||
|
### Item
|
||||||
|
- Camera position should be x=0.0, Y=1.0, Z=0.0.
|
||||||
|
- Camera angle should be X=90, Y=0, Z=180.
|
||||||
|
- Camera perspective @ focal length 30mm.
|
||||||
|
- Camera DOF @ item.
|
||||||
|
|
||||||
|
### Block
|
||||||
|
- Camera position should be X=0.5, Y=1.0, Z=0.5.
|
||||||
|
- Camera angle should be X=90, Y=0, Z=150.
|
||||||
|
- Camera should have a damped track to block.
|
||||||
|
- Camera should have a rotation limit on the y axis.
|
||||||
|
- Camera no DOF.
|
||||||
|
- Camera orthographic @ scale 2.0.
|
||||||
|
|
||||||
|
## Banner
|
||||||
|
1200 x 400 RGB PNG
|
||||||
|
|
||||||
|
- Camera perspective @ focal length 50mm (1x).
|
||||||
|
- Camera DOF @ focus distance 5m (1x).
|
||||||
|
- Gap between icon and text should be 1 grid.
|
||||||
|
- Text is Minecraft font, size 72.
|
||||||
|
- Text has 4px stroke.
|
||||||
|
- Icon has default drop shadow.
|
||||||
|
|
||||||
|
## Logo
|
||||||
|
400 x 400 RGB PNG
|
||||||
|
|
||||||
|
- Camera perspective @ focal length 150mm (3x).
|
||||||
|
- Camera DOF @ focus distance 15m (3x).
|
||||||
|
|
||||||
|
## Card
|
||||||
|
200 x 300 RGB PNG
|
||||||
|
|
||||||
|
- Camera perspective @ focal length 150mm (3x).
|
||||||
|
- Camera DOF @ focus distance 15m (3x).
|
||||||
|
- Icon should be scaled down to half.
|
||||||
|
- Gap between icon and text should be 1 grid.
|
||||||
|
- Text is Minecraft font, size 26.
|
||||||
|
- Text has 2px stroke.
|
||||||
|
- Icon has default drop shadow.
|
||||||
BIN
assets/images/blender/totem_of_reviving.blend
(Stored with Git LFS)
Normal file
BIN
assets/images/blender/totem_of_reviving.blend
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/blender/world-Alpha.png
(Stored with Git LFS)
Normal file
BIN
assets/images/blender/world-Alpha.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/blender/world-RGB.png
(Stored with Git LFS)
Normal file
BIN
assets/images/blender/world-RGB.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/blender/world-RGBA.png
(Stored with Git LFS)
Normal file
BIN
assets/images/blender/world-RGBA.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/blender/world.mtl
(Stored with Git LFS)
Normal file
BIN
assets/images/blender/world.mtl
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/blender/world.obj
(Stored with Git LFS)
Normal file
BIN
assets/images/blender/world.obj
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/renders/banner-vignette.png
(Stored with Git LFS)
Normal file
BIN
assets/images/renders/banner-vignette.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/renders/banner.png
(Stored with Git LFS)
Normal file
BIN
assets/images/renders/banner.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/renders/card-vignette.png
(Stored with Git LFS)
Normal file
BIN
assets/images/renders/card-vignette.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/renders/card.png
(Stored with Git LFS)
Normal file
BIN
assets/images/renders/card.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/renders/icon.png
(Stored with Git LFS)
Normal file
BIN
assets/images/renders/icon.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/renders/logo-vignette.png
(Stored with Git LFS)
Normal file
BIN
assets/images/renders/logo-vignette.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/renders/logo.png
(Stored with Git LFS)
Normal file
BIN
assets/images/renders/logo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/web/banner.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/web/banner.jpg
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/web/banner.kra
(Stored with Git LFS)
Normal file
BIN
assets/images/web/banner.kra
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/web/card.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/web/card.jpg
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/web/card.kra
(Stored with Git LFS)
Normal file
BIN
assets/images/web/card.kra
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/web/logo.jpg
(Stored with Git LFS)
Normal file
BIN
assets/images/web/logo.jpg
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/images/web/logo.kra
(Stored with Git LFS)
Normal file
BIN
assets/images/web/logo.kra
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/diamond_totem/diamond-totem.bbmodel
(Stored with Git LFS)
Normal file
BIN
assets/items/diamond_totem/diamond-totem.bbmodel
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/diamond_totem/diamond-totem.mtl
(Stored with Git LFS)
Normal file
BIN
assets/items/diamond_totem/diamond-totem.mtl
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/diamond_totem/diamond-totem.obj
(Stored with Git LFS)
Normal file
BIN
assets/items/diamond_totem/diamond-totem.obj
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/diamond_totem/diamond_totem.png
(Stored with Git LFS)
Normal file
BIN
assets/items/diamond_totem/diamond_totem.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/iron_totem/iron-totem.bbmodel
(Stored with Git LFS)
Normal file
BIN
assets/items/iron_totem/iron-totem.bbmodel
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/iron_totem/iron-totem.mtl
(Stored with Git LFS)
Normal file
BIN
assets/items/iron_totem/iron-totem.mtl
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/iron_totem/iron-totem.obj
(Stored with Git LFS)
Normal file
BIN
assets/items/iron_totem/iron-totem.obj
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/iron_totem/iron_totem.png
(Stored with Git LFS)
Normal file
BIN
assets/items/iron_totem/iron_totem.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/netherite_totem/netherite-totem.bbmodel
(Stored with Git LFS)
Normal file
BIN
assets/items/netherite_totem/netherite-totem.bbmodel
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/netherite_totem/netherite-totem.mtl
(Stored with Git LFS)
Normal file
BIN
assets/items/netherite_totem/netherite-totem.mtl
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/netherite_totem/netherite-totem.obj
(Stored with Git LFS)
Normal file
BIN
assets/items/netherite_totem/netherite-totem.obj
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/netherite_totem/netherite_totem.png
(Stored with Git LFS)
Normal file
BIN
assets/items/netherite_totem/netherite_totem.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/straw_totem/straw-totem.bbmodel
(Stored with Git LFS)
Normal file
BIN
assets/items/straw_totem/straw-totem.bbmodel
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/straw_totem/straw-totem.mtl
(Stored with Git LFS)
Normal file
BIN
assets/items/straw_totem/straw-totem.mtl
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/straw_totem/straw-totem.obj
(Stored with Git LFS)
Normal file
BIN
assets/items/straw_totem/straw-totem.obj
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/items/straw_totem/straw_totem.png
(Stored with Git LFS)
Normal file
BIN
assets/items/straw_totem/straw_totem.png
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -8,7 +8,7 @@ name = Micle's Totem of Reviving
|
|||||||
author = Micle
|
author = Micle
|
||||||
|
|
||||||
buildVersion = 2.0.0
|
buildVersion = 2.0.0
|
||||||
mcVersion = 1.19.4
|
mcVersion = 1.20.1
|
||||||
forgeVersion = 45.2.8
|
forgeVersion = 47.2.20
|
||||||
|
|
||||||
#jeiVersion = 11.+
|
#jeiVersion = 11.+
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
rootProject.name = 'TotemOfReviving-1.19'
|
rootProject.name = 'TotemOfReviving-1.20'
|
||||||
|
|||||||
@ -30,5 +30,6 @@
|
|||||||
"recipes": [
|
"recipes": [
|
||||||
"totemofreviving:diamond_charge"
|
"totemofreviving:diamond_charge"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"sends_telemetry_event": false
|
||||||
}
|
}
|
||||||
@ -30,5 +30,6 @@
|
|||||||
"recipes": [
|
"recipes": [
|
||||||
"totemofreviving:diamond_totem"
|
"totemofreviving:diamond_totem"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"sends_telemetry_event": false
|
||||||
}
|
}
|
||||||
@ -30,5 +30,6 @@
|
|||||||
"recipes": [
|
"recipes": [
|
||||||
"totemofreviving:iron_charge"
|
"totemofreviving:iron_charge"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"sends_telemetry_event": false
|
||||||
}
|
}
|
||||||
@ -30,5 +30,6 @@
|
|||||||
"recipes": [
|
"recipes": [
|
||||||
"totemofreviving:iron_totem"
|
"totemofreviving:iron_totem"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"sends_telemetry_event": false
|
||||||
}
|
}
|
||||||
@ -30,5 +30,6 @@
|
|||||||
"recipes": [
|
"recipes": [
|
||||||
"totemofreviving:netherite_charge"
|
"totemofreviving:netherite_charge"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"sends_telemetry_event": false
|
||||||
}
|
}
|
||||||
@ -30,5 +30,6 @@
|
|||||||
"recipes": [
|
"recipes": [
|
||||||
"totemofreviving:netherite_totem"
|
"totemofreviving:netherite_totem"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"sends_telemetry_event": false
|
||||||
}
|
}
|
||||||
@ -30,5 +30,6 @@
|
|||||||
"recipes": [
|
"recipes": [
|
||||||
"totemofreviving:straw_charge"
|
"totemofreviving:straw_charge"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"sends_telemetry_event": false
|
||||||
}
|
}
|
||||||
@ -30,5 +30,6 @@
|
|||||||
"recipes": [
|
"recipes": [
|
||||||
"totemofreviving:straw_totem"
|
"totemofreviving:straw_totem"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"sends_telemetry_event": false
|
||||||
}
|
}
|
||||||
@ -3,8 +3,6 @@ package dev.micle.totemofreviving;
|
|||||||
import dev.micle.totemofreviving.proxy.IProxy;
|
import dev.micle.totemofreviving.proxy.IProxy;
|
||||||
import dev.micle.totemofreviving.proxy.Proxy;
|
import dev.micle.totemofreviving.proxy.Proxy;
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.world.item.CreativeModeTab;
|
|
||||||
import net.minecraft.world.item.CreativeModeTabs;
|
|
||||||
import net.minecraftforge.fml.DistExecutor;
|
import net.minecraftforge.fml.DistExecutor;
|
||||||
import net.minecraftforge.fml.ModContainer;
|
import net.minecraftforge.fml.ModContainer;
|
||||||
import net.minecraftforge.fml.ModList;
|
import net.minecraftforge.fml.ModList;
|
||||||
@ -15,7 +13,6 @@ import java.util.Optional;
|
|||||||
@Mod(TotemOfReviving.MOD_ID)
|
@Mod(TotemOfReviving.MOD_ID)
|
||||||
public final class TotemOfReviving {
|
public final class TotemOfReviving {
|
||||||
public static final String MOD_ID = "totemofreviving";
|
public static final String MOD_ID = "totemofreviving";
|
||||||
public static CreativeModeTab CREATIVE_TAB = CreativeModeTabs.getDefaultTab();
|
|
||||||
|
|
||||||
private static IProxy proxy;
|
private static IProxy proxy;
|
||||||
|
|
||||||
|
|||||||
@ -1,33 +0,0 @@
|
|||||||
package dev.micle.totemofreviving.event.common;
|
|
||||||
|
|
||||||
import dev.micle.totemofreviving.TotemOfReviving;
|
|
||||||
import dev.micle.totemofreviving.setup.ModItems;
|
|
||||||
import net.minecraft.network.chat.Component;
|
|
||||||
import net.minecraft.world.item.ItemStack;
|
|
||||||
import net.minecraftforge.event.CreativeModeTabEvent;
|
|
||||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
|
||||||
import net.minecraftforge.fml.common.Mod;
|
|
||||||
|
|
||||||
@Mod.EventBusSubscriber(modid = TotemOfReviving.MOD_ID)
|
|
||||||
public class OnCreativeModeTabRegisterEventHandler {
|
|
||||||
@SubscribeEvent
|
|
||||||
public static void creativeModeTabRegisterEvent(CreativeModeTabEvent.Register event) {
|
|
||||||
System.out.println("HERE!");
|
|
||||||
TotemOfReviving.CREATIVE_TAB = event.registerCreativeModeTab(
|
|
||||||
TotemOfReviving.createResourceLocation("creative_mode_tab_main"), builder -> builder
|
|
||||||
.icon(() -> new ItemStack(ModItems.STRAW_TOTEM.get()))
|
|
||||||
.title(Component.translatable(String.format("tabs.%s.main_tab", TotemOfReviving.MOD_ID)))
|
|
||||||
.displayItems((featureFlags, output) -> {
|
|
||||||
output.accept(ModItems.STRAW_TOTEM.get());
|
|
||||||
output.accept(ModItems.IRON_TOTEM.get());
|
|
||||||
output.accept(ModItems.DIAMOND_TOTEM.get());
|
|
||||||
output.accept(ModItems.NETHERITE_TOTEM.get());
|
|
||||||
|
|
||||||
output.accept(ModItems.STRAW_CHARGE.get());
|
|
||||||
output.accept(ModItems.IRON_CHARGE.get());
|
|
||||||
output.accept(ModItems.DIAMOND_CHARGE.get());
|
|
||||||
output.accept(ModItems.NETHERITE_CHARGE.get());
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,6 +1,5 @@
|
|||||||
package dev.micle.totemofreviving.item.charge;
|
package dev.micle.totemofreviving.item.charge;
|
||||||
|
|
||||||
import dev.micle.totemofreviving.setup.Config;
|
|
||||||
import net.minecraft.ChatFormatting;
|
import net.minecraft.ChatFormatting;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.world.item.Item;
|
import net.minecraft.world.item.Item;
|
||||||
|
|||||||
@ -49,7 +49,7 @@ public class ReviveTargetPacket {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!target.getLevel().equals(sender.getLevel()) && !TotemItem.canReviveAcrossDimensions(totemStack)) {
|
if (!target.serverLevel().equals(sender.serverLevel()) && !TotemItem.canReviveAcrossDimensions(totemStack)) {
|
||||||
sender.sendSystemMessage(Component.literal(ChatFormatting.GRAY + target.getDisplayName().getString() + ChatFormatting.WHITE + " is in a different dimension!"));
|
sender.sendSystemMessage(Component.literal(ChatFormatting.GRAY + target.getDisplayName().getString() + ChatFormatting.WHITE + " is in a different dimension!"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -60,8 +60,8 @@ public class ReviveTargetPacket {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
target.teleportTo(sender.getLevel(), sender.position().x, sender.position().y, sender.position().z, sender.getYRot(), sender.getXRot());
|
target.teleportTo(sender.serverLevel(), sender.position().x, sender.position().y, sender.position().z, sender.getYRot(), sender.getXRot());
|
||||||
target.setGameMode(sender.getLevel().getServer().getDefaultGameType());
|
target.setGameMode(sender.serverLevel().getServer().getDefaultGameType());
|
||||||
TotemItem.setCharge(totemStack, TotemItem.getCharge(totemStack) - TotemItem.getTargetCost(totemStack));
|
TotemItem.setCharge(totemStack, TotemItem.getCharge(totemStack) - TotemItem.getTargetCost(totemStack));
|
||||||
totemStack.hurtAndBreak(1, sender, e -> e.broadcastBreakEvent(packet.hand));
|
totemStack.hurtAndBreak(1, sender, e -> e.broadcastBreakEvent(packet.hand));
|
||||||
sender.sendSystemMessage(Component.literal(ChatFormatting.WHITE + "Successfully revived " + ChatFormatting.GRAY + target.getDisplayName().getString() + "!"));
|
sender.sendSystemMessage(Component.literal(ChatFormatting.WHITE + "Successfully revived " + ChatFormatting.GRAY + target.getDisplayName().getString() + "!"));
|
||||||
|
|||||||
@ -0,0 +1,28 @@
|
|||||||
|
package dev.micle.totemofreviving.setup;
|
||||||
|
|
||||||
|
import dev.micle.totemofreviving.TotemOfReviving;
|
||||||
|
import net.minecraft.network.chat.Component;
|
||||||
|
import net.minecraft.world.item.CreativeModeTab;
|
||||||
|
import net.minecraftforge.registries.RegistryObject;
|
||||||
|
|
||||||
|
public class ModCreativeModeTabs {
|
||||||
|
public static RegistryObject<CreativeModeTab> MAIN = Registration.CREATIVE_MODE_TABS.register("main",
|
||||||
|
() -> CreativeModeTab.builder()
|
||||||
|
.title(Component.translatable(String.format("itemGroup.%s.main", TotemOfReviving.MOD_ID)))
|
||||||
|
.icon(ModItems.STRAW_TOTEM.get()::getDefaultInstance)
|
||||||
|
.displayItems((itemDisplayParameters, output) -> {
|
||||||
|
output.accept(ModItems.STRAW_TOTEM.get());
|
||||||
|
output.accept(ModItems.IRON_TOTEM.get());
|
||||||
|
output.accept(ModItems.DIAMOND_TOTEM.get());
|
||||||
|
output.accept(ModItems.NETHERITE_TOTEM.get());
|
||||||
|
|
||||||
|
output.accept(ModItems.STRAW_CHARGE.get());
|
||||||
|
output.accept(ModItems.IRON_CHARGE.get());
|
||||||
|
output.accept(ModItems.DIAMOND_CHARGE.get());
|
||||||
|
output.accept(ModItems.NETHERITE_CHARGE.get());
|
||||||
|
})
|
||||||
|
.build()
|
||||||
|
);
|
||||||
|
|
||||||
|
public static void register() {}
|
||||||
|
}
|
||||||
@ -1,7 +1,8 @@
|
|||||||
package dev.micle.totemofreviving.setup;
|
package dev.micle.totemofreviving.setup;
|
||||||
|
|
||||||
import dev.micle.totemofreviving.TotemOfReviving;
|
import dev.micle.totemofreviving.TotemOfReviving;
|
||||||
import dev.micle.totemofreviving.event.common.OnCreativeModeTabRegisterEventHandler;
|
import net.minecraft.core.registries.Registries;
|
||||||
|
import net.minecraft.world.item.CreativeModeTab;
|
||||||
import net.minecraft.world.item.Item;
|
import net.minecraft.world.item.Item;
|
||||||
import net.minecraftforge.eventbus.api.IEventBus;
|
import net.minecraftforge.eventbus.api.IEventBus;
|
||||||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||||
@ -13,12 +14,16 @@ public class Registration {
|
|||||||
public static final DeferredRegister<Item> ITEMS =
|
public static final DeferredRegister<Item> ITEMS =
|
||||||
DeferredRegister.create(ForgeRegistries.ITEMS, TotemOfReviving.MOD_ID);
|
DeferredRegister.create(ForgeRegistries.ITEMS, TotemOfReviving.MOD_ID);
|
||||||
|
|
||||||
|
public static final DeferredRegister<CreativeModeTab> CREATIVE_MODE_TABS =
|
||||||
|
DeferredRegister.create(Registries.CREATIVE_MODE_TAB, TotemOfReviving.MOD_ID);
|
||||||
|
|
||||||
public static void register() {
|
public static void register() {
|
||||||
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
||||||
|
|
||||||
ITEMS.register(modEventBus);
|
ITEMS.register(modEventBus);
|
||||||
ModItems.register();
|
ModItems.register();
|
||||||
|
|
||||||
modEventBus.register(OnCreativeModeTabRegisterEventHandler.class);
|
CREATIVE_MODE_TABS.register(modEventBus);
|
||||||
|
ModCreativeModeTabs.register();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
|
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
|
||||||
modLoader = "javafml" #mandatory
|
modLoader = "javafml" #mandatory
|
||||||
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
|
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
|
||||||
loaderVersion = "[45,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
|
loaderVersion = "[47,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
|
||||||
# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
|
# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
|
||||||
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
|
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
|
||||||
license = "All Rights Reserved"
|
license = "All Rights Reserved"
|
||||||
@ -43,7 +43,7 @@ Mod for reviving players in a hardcore world.
|
|||||||
# Does this dependency have to exist - if not, ordering below must be specified
|
# Does this dependency have to exist - if not, ordering below must be specified
|
||||||
mandatory = true #mandatory
|
mandatory = true #mandatory
|
||||||
# The version range of the dependency
|
# The version range of the dependency
|
||||||
versionRange = "[45,)" #mandatory
|
versionRange = "[47,)" #mandatory
|
||||||
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
|
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
|
||||||
ordering = "NONE"
|
ordering = "NONE"
|
||||||
# Side this dependency is applied on - BOTH, CLIENT or SERVER
|
# Side this dependency is applied on - BOTH, CLIENT or SERVER
|
||||||
@ -53,6 +53,6 @@ Mod for reviving players in a hardcore world.
|
|||||||
modId = "minecraft"
|
modId = "minecraft"
|
||||||
mandatory = true
|
mandatory = true
|
||||||
# This version range declares a minimum of the current minecraft version up to but not including the next major version
|
# This version range declares a minimum of the current minecraft version up to but not including the next major version
|
||||||
versionRange = "[1.19.4,1.20)"
|
versionRange = "[1.20.1,1.20.2)"
|
||||||
ordering = "NONE"
|
ordering = "NONE"
|
||||||
side = "BOTH"
|
side = "BOTH"
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"tabs.totemofreviving.main_tab": "Micle's Totem of Reviving",
|
"itemGroup.totemofreviving.main": "Micle's Totem of Reviving",
|
||||||
"item.totemofreviving.straw_totem": "Straw totem of reviving",
|
"item.totemofreviving.straw_totem": "Straw totem of reviving",
|
||||||
"item.totemofreviving.iron_totem": "Iron totem of reviving",
|
"item.totemofreviving.iron_totem": "Iron totem of reviving",
|
||||||
"item.totemofreviving.diamond_totem": "Diamond totem of reviving",
|
"item.totemofreviving.diamond_totem": "Diamond totem of reviving",
|
||||||
|
|||||||
BIN
src/main/resources/logo.jpg
(Stored with Git LFS)
BIN
src/main/resources/logo.jpg
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user