Initial Commit
This commit is contained in:
5
.gitattributes
vendored
Normal file
5
.gitattributes
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Disable autocrlf on generated files, they always generate with LF
|
||||||
|
# Add any extra files or paths here to make git stop saying they
|
||||||
|
# are changed when only line endings change.
|
||||||
|
src/generated/**/.cache/cache text eol=lf
|
||||||
|
src/generated/**/*.json text eol=lf
|
||||||
42
.gitignore
vendored
Normal file
42
.gitignore
vendored
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
# eclipse
|
||||||
|
bin
|
||||||
|
*.launch
|
||||||
|
.settings
|
||||||
|
.metadata
|
||||||
|
.classpath
|
||||||
|
.project
|
||||||
|
|
||||||
|
# idea
|
||||||
|
out
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
*.iml
|
||||||
|
.idea
|
||||||
|
|
||||||
|
# gradle
|
||||||
|
build
|
||||||
|
.gradle
|
||||||
|
|
||||||
|
# other
|
||||||
|
eclipse
|
||||||
|
run
|
||||||
|
*.ase
|
||||||
|
*.aseprite
|
||||||
|
*.psd
|
||||||
|
aseprite
|
||||||
|
ArtWorkSource
|
||||||
|
|
||||||
|
# Files from Forge MDK
|
||||||
|
forge*changelog.txt
|
||||||
|
|
||||||
|
# source artwork files
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/.idea/
|
||||||
|
/SuperNovaAssets/
|
||||||
|
/ArtWorkSource/
|
||||||
|
/aseprite/
|
||||||
|
/.settings/
|
||||||
|
/Promotional Artwork/
|
||||||
|
/run/
|
||||||
520
LICENSE.txt
Normal file
520
LICENSE.txt
Normal file
@@ -0,0 +1,520 @@
|
|||||||
|
Unless noted below, Minecraft Forge, Forge Mod Loader, and all
|
||||||
|
parts herein are licensed under the terms of the LGPL 2.1 found
|
||||||
|
here http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt and
|
||||||
|
copied below.
|
||||||
|
|
||||||
|
Homepage: http://minecraftforge.net/
|
||||||
|
https://github.com/MinecraftForge/MinecraftForge
|
||||||
|
|
||||||
|
|
||||||
|
A note on authorship:
|
||||||
|
All source artifacts are property of their original author, with
|
||||||
|
the exclusion of the contents of the patches directory and others
|
||||||
|
copied from it from time to time. Authorship of the contents of
|
||||||
|
the patches directory is retained by the Minecraft Forge project.
|
||||||
|
This is because the patches are partially machine generated
|
||||||
|
artifacts, and are changed heavily due to the way forge works.
|
||||||
|
Individual attribution within them is impossible.
|
||||||
|
|
||||||
|
Consent:
|
||||||
|
All contributions to Forge must consent to the release of any
|
||||||
|
patch content to the Forge project.
|
||||||
|
|
||||||
|
A note on infectivity:
|
||||||
|
The LGPL is chosen specifically so that projects may depend on Forge
|
||||||
|
features without being infected with its license. That is the
|
||||||
|
purpose of the LGPL. Mods and others using this code via ordinary
|
||||||
|
Java mechanics for referencing libraries are specifically not bound
|
||||||
|
by Forge's license for the Mod code.
|
||||||
|
|
||||||
|
|
||||||
|
=== MCP Data ===
|
||||||
|
This software includes data from the Minecraft Coder Pack (MCP), with kind permission
|
||||||
|
from them. The license to MCP data is not transitive - distribution of this data by
|
||||||
|
third parties requires independent licensing from the MCP team. This data is not
|
||||||
|
redistributable without permission from the MCP team.
|
||||||
|
|
||||||
|
=== Sharing ===
|
||||||
|
I grant permission for some parts of FML to be redistributed outside the terms of the LGPL, for the benefit of
|
||||||
|
the minecraft modding community. All contributions to these parts should be licensed under the same additional grant.
|
||||||
|
|
||||||
|
-- Runtime patcher --
|
||||||
|
License is granted to redistribute the runtime patcher code (src/main/java/net/minecraftforge/fml/common/patcher
|
||||||
|
and subdirectories) under any alternative open source license as classified by the OSI (http://opensource.org/licenses)
|
||||||
|
|
||||||
|
-- ASM transformers --
|
||||||
|
License is granted to redistribute the ASM transformer code (src/main/java/net/minecraftforge/common/asm/ and subdirectories)
|
||||||
|
under any alternative open source license as classified by the OSI (http://opensource.org/licenses)
|
||||||
|
|
||||||
|
=========================================================================
|
||||||
|
This software includes portions from the Apache Maven project at
|
||||||
|
http://maven.apache.org/ specifically the ComparableVersion.java code. It is
|
||||||
|
included based on guidelines at
|
||||||
|
http://www.softwarefreedom.org/resources/2007/gpl-non-gpl-collaboration.html
|
||||||
|
with notices intact. The only change is a non-functional change of package name.
|
||||||
|
|
||||||
|
This software contains a partial repackaging of javaxdelta, a BSD licensed program for generating
|
||||||
|
binary differences and applying them, sourced from the subversion at http://sourceforge.net/projects/javaxdelta/
|
||||||
|
authored by genman, heikok, pivot.
|
||||||
|
The only changes are to replace some Trove collection types with standard Java collections, and repackaged.
|
||||||
|
=========================================================================
|
||||||
|
|
||||||
|
|
||||||
|
GNU LESSER GENERAL PUBLIC LICENSE
|
||||||
|
Version 2.1, February 1999
|
||||||
|
|
||||||
|
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
[This is the first released version of the Lesser GPL. It also counts
|
||||||
|
as the successor of the GNU Library Public License, version 2, hence
|
||||||
|
the version number 2.1.]
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
Licenses are intended to guarantee your freedom to share and change
|
||||||
|
free software--to make sure the software is free for all its users.
|
||||||
|
|
||||||
|
This license, the Lesser General Public License, applies to some
|
||||||
|
specially designated software packages--typically libraries--of the
|
||||||
|
Free Software Foundation and other authors who decide to use it. You
|
||||||
|
can use it too, but we suggest you first think carefully about whether
|
||||||
|
this license or the ordinary General Public License is the better
|
||||||
|
strategy to use in any particular case, based on the explanations below.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom of use,
|
||||||
|
not price. Our General Public Licenses are designed to make sure that
|
||||||
|
you have the freedom to distribute copies of free software (and charge
|
||||||
|
for this service if you wish); that you receive source code or can get
|
||||||
|
it if you want it; that you can change the software and use pieces of
|
||||||
|
it in new free programs; and that you are informed that you can do
|
||||||
|
these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
distributors to deny you these rights or to ask you to surrender these
|
||||||
|
rights. These restrictions translate to certain responsibilities for
|
||||||
|
you if you distribute copies of the library or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of the library, whether gratis
|
||||||
|
or for a fee, you must give the recipients all the rights that we gave
|
||||||
|
you. You must make sure that they, too, receive or can get the source
|
||||||
|
code. If you link other code with the library, you must provide
|
||||||
|
complete object files to the recipients, so that they can relink them
|
||||||
|
with the library after making changes to the library and recompiling
|
||||||
|
it. And you must show them these terms so they know their rights.
|
||||||
|
|
||||||
|
We protect your rights with a two-step method: (1) we copyright the
|
||||||
|
library, and (2) we offer you this license, which gives you legal
|
||||||
|
permission to copy, distribute and/or modify the library.
|
||||||
|
|
||||||
|
To protect each distributor, we want to make it very clear that
|
||||||
|
there is no warranty for the free library. Also, if the library is
|
||||||
|
modified by someone else and passed on, the recipients should know
|
||||||
|
that what they have is not the original version, so that the original
|
||||||
|
author's reputation will not be affected by problems that might be
|
||||||
|
introduced by others.
|
||||||
|
|
||||||
|
Finally, software patents pose a constant threat to the existence of
|
||||||
|
any free program. We wish to make sure that a company cannot
|
||||||
|
effectively restrict the users of a free program by obtaining a
|
||||||
|
restrictive license from a patent holder. Therefore, we insist that
|
||||||
|
any patent license obtained for a version of the library must be
|
||||||
|
consistent with the full freedom of use specified in this license.
|
||||||
|
|
||||||
|
Most GNU software, including some libraries, is covered by the
|
||||||
|
ordinary GNU General Public License. This license, the GNU Lesser
|
||||||
|
General Public License, applies to certain designated libraries, and
|
||||||
|
is quite different from the ordinary General Public License. We use
|
||||||
|
this license for certain libraries in order to permit linking those
|
||||||
|
libraries into non-free programs.
|
||||||
|
|
||||||
|
When a program is linked with a library, whether statically or using
|
||||||
|
a shared library, the combination of the two is legally speaking a
|
||||||
|
combined work, a derivative of the original library. The ordinary
|
||||||
|
General Public License therefore permits such linking only if the
|
||||||
|
entire combination fits its criteria of freedom. The Lesser General
|
||||||
|
Public License permits more lax criteria for linking other code with
|
||||||
|
the library.
|
||||||
|
|
||||||
|
We call this license the "Lesser" General Public License because it
|
||||||
|
does Less to protect the user's freedom than the ordinary General
|
||||||
|
Public License. It also provides other free software developers Less
|
||||||
|
of an advantage over competing non-free programs. These disadvantages
|
||||||
|
are the reason we use the ordinary General Public License for many
|
||||||
|
libraries. However, the Lesser license provides advantages in certain
|
||||||
|
special circumstances.
|
||||||
|
|
||||||
|
For example, on rare occasions, there may be a special need to
|
||||||
|
encourage the widest possible use of a certain library, so that it becomes
|
||||||
|
a de-facto standard. To achieve this, non-free programs must be
|
||||||
|
allowed to use the library. A more frequent case is that a free
|
||||||
|
library does the same job as widely used non-free libraries. In this
|
||||||
|
case, there is little to gain by limiting the free library to free
|
||||||
|
software only, so we use the Lesser General Public License.
|
||||||
|
|
||||||
|
In other cases, permission to use a particular library in non-free
|
||||||
|
programs enables a greater number of people to use a large body of
|
||||||
|
free software. For example, permission to use the GNU C Library in
|
||||||
|
non-free programs enables many more people to use the whole GNU
|
||||||
|
operating system, as well as its variant, the GNU/Linux operating
|
||||||
|
system.
|
||||||
|
|
||||||
|
Although the Lesser General Public License is Less protective of the
|
||||||
|
users' freedom, it does ensure that the user of a program that is
|
||||||
|
linked with the Library has the freedom and the wherewithal to run
|
||||||
|
that program using a modified version of the Library.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow. Pay close attention to the difference between a
|
||||||
|
"work based on the library" and a "work that uses the library". The
|
||||||
|
former contains code derived from the library, whereas the latter must
|
||||||
|
be combined with the library in order to run.
|
||||||
|
|
||||||
|
GNU LESSER GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License Agreement applies to any software library or other
|
||||||
|
program which contains a notice placed by the copyright holder or
|
||||||
|
other authorized party saying it may be distributed under the terms of
|
||||||
|
this Lesser General Public License (also called "this License").
|
||||||
|
Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
A "library" means a collection of software functions and/or data
|
||||||
|
prepared so as to be conveniently linked with application programs
|
||||||
|
(which use some of those functions and data) to form executables.
|
||||||
|
|
||||||
|
The "Library", below, refers to any such software library or work
|
||||||
|
which has been distributed under these terms. A "work based on the
|
||||||
|
Library" means either the Library or any derivative work under
|
||||||
|
copyright law: that is to say, a work containing the Library or a
|
||||||
|
portion of it, either verbatim or with modifications and/or translated
|
||||||
|
straightforwardly into another language. (Hereinafter, translation is
|
||||||
|
included without limitation in the term "modification".)
|
||||||
|
|
||||||
|
"Source code" for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For a library, complete source code means
|
||||||
|
all the source code for all modules it contains, plus any associated
|
||||||
|
interface definition files, plus the scripts used to control compilation
|
||||||
|
and installation of the library.
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running a program using the Library is not restricted, and output from
|
||||||
|
such a program is covered only if its contents constitute a work based
|
||||||
|
on the Library (independent of the use of the Library in a tool for
|
||||||
|
writing it). Whether that is true depends on what the Library does
|
||||||
|
and what the program that uses the Library does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Library's
|
||||||
|
complete source code as you receive it, in any medium, provided that
|
||||||
|
you conspicuously and appropriately publish on each copy an
|
||||||
|
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||||
|
all the notices that refer to this License and to the absence of any
|
||||||
|
warranty; and distribute a copy of this License along with the
|
||||||
|
Library.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy,
|
||||||
|
and you may at your option offer warranty protection in exchange for a
|
||||||
|
fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Library or any portion
|
||||||
|
of it, thus forming a work based on the Library, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The modified work must itself be a software library.
|
||||||
|
|
||||||
|
b) You must cause the files modified to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
c) You must cause the whole of the work to be licensed at no
|
||||||
|
charge to all third parties under the terms of this License.
|
||||||
|
|
||||||
|
d) If a facility in the modified Library refers to a function or a
|
||||||
|
table of data to be supplied by an application program that uses
|
||||||
|
the facility, other than as an argument passed when the facility
|
||||||
|
is invoked, then you must make a good faith effort to ensure that,
|
||||||
|
in the event an application does not supply such function or
|
||||||
|
table, the facility still operates, and performs whatever part of
|
||||||
|
its purpose remains meaningful.
|
||||||
|
|
||||||
|
(For example, a function in a library to compute square roots has
|
||||||
|
a purpose that is entirely well-defined independent of the
|
||||||
|
application. Therefore, Subsection 2d requires that any
|
||||||
|
application-supplied function or table used by this function must
|
||||||
|
be optional: if the application does not supply it, the square
|
||||||
|
root function must still compute square roots.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Library,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Library, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote
|
||||||
|
it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Library.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Library
|
||||||
|
with the Library (or with a work based on the Library) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||||
|
License instead of this License to a given copy of the Library. To do
|
||||||
|
this, you must alter all the notices that refer to this License, so
|
||||||
|
that they refer to the ordinary GNU General Public License, version 2,
|
||||||
|
instead of to this License. (If a newer version than version 2 of the
|
||||||
|
ordinary GNU General Public License has appeared, then you can specify
|
||||||
|
that version instead if you wish.) Do not make any other change in
|
||||||
|
these notices.
|
||||||
|
|
||||||
|
Once this change is made in a given copy, it is irreversible for
|
||||||
|
that copy, so the ordinary GNU General Public License applies to all
|
||||||
|
subsequent copies and derivative works made from that copy.
|
||||||
|
|
||||||
|
This option is useful when you wish to copy part of the code of
|
||||||
|
the Library into a program that is not a library.
|
||||||
|
|
||||||
|
4. You may copy and distribute the Library (or a portion or
|
||||||
|
derivative of it, under Section 2) in object code or executable form
|
||||||
|
under the terms of Sections 1 and 2 above provided that you accompany
|
||||||
|
it with the complete corresponding machine-readable source code, which
|
||||||
|
must be distributed under the terms of Sections 1 and 2 above on a
|
||||||
|
medium customarily used for software interchange.
|
||||||
|
|
||||||
|
If distribution of object code is made by offering access to copy
|
||||||
|
from a designated place, then offering equivalent access to copy the
|
||||||
|
source code from the same place satisfies the requirement to
|
||||||
|
distribute the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
5. A program that contains no derivative of any portion of the
|
||||||
|
Library, but is designed to work with the Library by being compiled or
|
||||||
|
linked with it, is called a "work that uses the Library". Such a
|
||||||
|
work, in isolation, is not a derivative work of the Library, and
|
||||||
|
therefore falls outside the scope of this License.
|
||||||
|
|
||||||
|
However, linking a "work that uses the Library" with the Library
|
||||||
|
creates an executable that is a derivative of the Library (because it
|
||||||
|
contains portions of the Library), rather than a "work that uses the
|
||||||
|
library". The executable is therefore covered by this License.
|
||||||
|
Section 6 states terms for distribution of such executables.
|
||||||
|
|
||||||
|
When a "work that uses the Library" uses material from a header file
|
||||||
|
that is part of the Library, the object code for the work may be a
|
||||||
|
derivative work of the Library even though the source code is not.
|
||||||
|
Whether this is true is especially significant if the work can be
|
||||||
|
linked without the Library, or if the work is itself a library. The
|
||||||
|
threshold for this to be true is not precisely defined by law.
|
||||||
|
|
||||||
|
If such an object file uses only numerical parameters, data
|
||||||
|
structure layouts and accessors, and small macros and small inline
|
||||||
|
functions (ten lines or less in length), then the use of the object
|
||||||
|
file is unrestricted, regardless of whether it is legally a derivative
|
||||||
|
work. (Executables containing this object code plus portions of the
|
||||||
|
Library will still fall under Section 6.)
|
||||||
|
|
||||||
|
Otherwise, if the work is a derivative of the Library, you may
|
||||||
|
distribute the object code for the work under the terms of Section 6.
|
||||||
|
Any executables containing that work also fall under Section 6,
|
||||||
|
whether or not they are linked directly with the Library itself.
|
||||||
|
|
||||||
|
6. As an exception to the Sections above, you may also combine or
|
||||||
|
link a "work that uses the Library" with the Library to produce a
|
||||||
|
work containing portions of the Library, and distribute that work
|
||||||
|
under terms of your choice, provided that the terms permit
|
||||||
|
modification of the work for the customer's own use and reverse
|
||||||
|
engineering for debugging such modifications.
|
||||||
|
|
||||||
|
You must give prominent notice with each copy of the work that the
|
||||||
|
Library is used in it and that the Library and its use are covered by
|
||||||
|
this License. You must supply a copy of this License. If the work
|
||||||
|
during execution displays copyright notices, you must include the
|
||||||
|
copyright notice for the Library among them, as well as a reference
|
||||||
|
directing the user to the copy of this License. Also, you must do one
|
||||||
|
of these things:
|
||||||
|
|
||||||
|
a) Accompany the work with the complete corresponding
|
||||||
|
machine-readable source code for the Library including whatever
|
||||||
|
changes were used in the work (which must be distributed under
|
||||||
|
Sections 1 and 2 above); and, if the work is an executable linked
|
||||||
|
with the Library, with the complete machine-readable "work that
|
||||||
|
uses the Library", as object code and/or source code, so that the
|
||||||
|
user can modify the Library and then relink to produce a modified
|
||||||
|
executable containing the modified Library. (It is understood
|
||||||
|
that the user who changes the contents of definitions files in the
|
||||||
|
Library will not necessarily be able to recompile the application
|
||||||
|
to use the modified definitions.)
|
||||||
|
|
||||||
|
b) Use a suitable shared library mechanism for linking with the
|
||||||
|
Library. A suitable mechanism is one that (1) uses at run time a
|
||||||
|
copy of the library already present on the user's computer system,
|
||||||
|
rather than copying library functions into the executable, and (2)
|
||||||
|
will operate properly with a modified version of the library, if
|
||||||
|
the user installs one, as long as the modified version is
|
||||||
|
interface-compatible with the version that the work was made with.
|
||||||
|
|
||||||
|
c) Accompany the work with a written offer, valid for at
|
||||||
|
least three years, to give the same user the materials
|
||||||
|
specified in Subsection 6a, above, for a charge no more
|
||||||
|
than the cost of performing this distribution.
|
||||||
|
|
||||||
|
d) If distribution of the work is made by offering access to copy
|
||||||
|
from a designated place, offer equivalent access to copy the above
|
||||||
|
specified materials from the same place.
|
||||||
|
|
||||||
|
e) Verify that the user has already received a copy of these
|
||||||
|
materials or that you have already sent this user a copy.
|
||||||
|
|
||||||
|
For an executable, the required form of the "work that uses the
|
||||||
|
Library" must include any data and utility programs needed for
|
||||||
|
reproducing the executable from it. However, as a special exception,
|
||||||
|
the materials to be distributed need not include anything that is
|
||||||
|
normally distributed (in either source or binary form) with the major
|
||||||
|
components (compiler, kernel, and so on) of the operating system on
|
||||||
|
which the executable runs, unless that component itself accompanies
|
||||||
|
the executable.
|
||||||
|
|
||||||
|
It may happen that this requirement contradicts the license
|
||||||
|
restrictions of other proprietary libraries that do not normally
|
||||||
|
accompany the operating system. Such a contradiction means you cannot
|
||||||
|
use both them and the Library together in an executable that you
|
||||||
|
distribute.
|
||||||
|
|
||||||
|
7. You may place library facilities that are a work based on the
|
||||||
|
Library side-by-side in a single library together with other library
|
||||||
|
facilities not covered by this License, and distribute such a combined
|
||||||
|
library, provided that the separate distribution of the work based on
|
||||||
|
the Library and of the other library facilities is otherwise
|
||||||
|
permitted, and provided that you do these two things:
|
||||||
|
|
||||||
|
a) Accompany the combined library with a copy of the same work
|
||||||
|
based on the Library, uncombined with any other library
|
||||||
|
facilities. This must be distributed under the terms of the
|
||||||
|
Sections above.
|
||||||
|
|
||||||
|
b) Give prominent notice with the combined library of the fact
|
||||||
|
that part of it is a work based on the Library, and explaining
|
||||||
|
where to find the accompanying uncombined form of the same work.
|
||||||
|
|
||||||
|
8. You may not copy, modify, sublicense, link with, or distribute
|
||||||
|
the Library except as expressly provided under this License. Any
|
||||||
|
attempt otherwise to copy, modify, sublicense, link with, or
|
||||||
|
distribute the Library is void, and will automatically terminate your
|
||||||
|
rights under this License. However, parties who have received copies,
|
||||||
|
or rights, from you under this License will not have their licenses
|
||||||
|
terminated so long as such parties remain in full compliance.
|
||||||
|
|
||||||
|
9. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Library or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Library (or any work based on the
|
||||||
|
Library), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Library or works based on it.
|
||||||
|
|
||||||
|
10. Each time you redistribute the Library (or any work based on the
|
||||||
|
Library), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute, link with or modify the Library
|
||||||
|
subject to these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties with
|
||||||
|
this License.
|
||||||
|
|
||||||
|
11. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Library at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Library by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Library.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under any
|
||||||
|
particular circumstance, the balance of the section is intended to apply,
|
||||||
|
and the section as a whole is intended to apply in other circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
12. If the distribution and/or use of the Library is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Library under this License may add
|
||||||
|
an explicit geographical distribution limitation excluding those countries,
|
||||||
|
so that distribution is permitted only in or among countries not thus
|
||||||
|
excluded. In such case, this License incorporates the limitation as if
|
||||||
|
written in the body of this License.
|
||||||
|
|
||||||
|
13. The Free Software Foundation may publish revised and/or new
|
||||||
|
versions of the Lesser General Public License from time to time.
|
||||||
|
Such new versions will be similar in spirit to the present version,
|
||||||
|
but may differ in detail to address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Library
|
||||||
|
specifies a version number of this License which applies to it and
|
||||||
|
"any later version", you have the option of following the terms and
|
||||||
|
conditions either of that version or of any later version published by
|
||||||
|
the Free Software Foundation. If the Library does not specify a
|
||||||
|
license version number, you may choose any version ever published by
|
||||||
|
the Free Software Foundation.
|
||||||
|
|
||||||
|
14. If you wish to incorporate parts of the Library into other free
|
||||||
|
programs whose distribution conditions are incompatible with these,
|
||||||
|
write to the author to ask for permission. For software which is
|
||||||
|
copyrighted by the Free Software Foundation, write to the Free
|
||||||
|
Software Foundation; we sometimes make exceptions for this. Our
|
||||||
|
decision will be guided by the two goals of preserving the free status
|
||||||
|
of all derivatives of our free software and of promoting the sharing
|
||||||
|
and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||||
|
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||||
|
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||||
|
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||||
|
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||||
|
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||||
|
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||||
|
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||||
|
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||||
|
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||||
|
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||||
|
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||||
|
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||||
|
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||||
|
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||||
|
DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
21
README.md
Normal file
21
README.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# SuperNova Space mod
|
||||||
|
|
||||||
|
A mod by Iron Horse Game Development
|
||||||
|
|
||||||
|
Developers: halbear1, Masterchefreal and TechyKnight(AKA Paladin), peacefulgamer_ \
|
||||||
|
musicians: Billz_game(AKA Billy Beats)
|
||||||
|
|
||||||
|
Contribution:\
|
||||||
|
if you want to help develop this mod, then you are open to look at the roadmap(yet to be created)\
|
||||||
|
and create a fork to work on! join the discord server and talk to us about development, aswell as\
|
||||||
|
to be added to the curseforge page as a contributor\
|
||||||
|
*looking for translators*
|
||||||
|
|
||||||
|
Distribution:\
|
||||||
|
-free to use in modpacks\
|
||||||
|
-please do not reupload on sites other than curseforge and modrinth\
|
||||||
|
-free to use for content creation
|
||||||
|
|
||||||
|
Discord servers:\
|
||||||
|
https://discord.gg/pnXGRaXMjv \
|
||||||
|
https://discord.gg/p3fcBPYM6c
|
||||||
113
build.gradle
Normal file
113
build.gradle
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
maven { url = 'https://maven.minecraftforge.net' }
|
||||||
|
maven { url = 'https://maven.parchmentmc.org' }
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
|
||||||
|
classpath 'org.parchmentmc:librarian:1.+'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
apply plugin: 'net.minecraftforge.gradle'
|
||||||
|
apply plugin: 'org.parchmentmc.librarian.forgegradle'
|
||||||
|
apply plugin: 'eclipse'
|
||||||
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
|
version = '1.16.5-0.1'
|
||||||
|
group = 'dev.halbear1.supernova' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
archivesBaseName = 'supernova'
|
||||||
|
|
||||||
|
java.toolchain.languageVersion = JavaLanguageVersion.of(8) // Mojang ships Java 8 to end users, so your mod should target Java 8.
|
||||||
|
|
||||||
|
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
|
||||||
|
minecraft {
|
||||||
|
|
||||||
|
mappings channel: 'snapshot', version: '20210309-1.16.5'
|
||||||
|
|
||||||
|
runs {
|
||||||
|
client {
|
||||||
|
workingDirectory project.file('run')
|
||||||
|
|
||||||
|
property 'forge.logging.markers', 'REGISTRIES'
|
||||||
|
|
||||||
|
property 'forge.logging.console.level', 'debug'
|
||||||
|
|
||||||
|
mods {
|
||||||
|
supernova {
|
||||||
|
source sourceSets.main
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
workingDirectory project.file('run')
|
||||||
|
|
||||||
|
property 'forge.logging.markers', 'REGISTRIES'
|
||||||
|
|
||||||
|
property 'forge.logging.console.level', 'debug'
|
||||||
|
|
||||||
|
mods {
|
||||||
|
supernova {
|
||||||
|
source sourceSets.main
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
data {
|
||||||
|
workingDirectory project.file('run')
|
||||||
|
|
||||||
|
property 'forge.logging.markers', 'REGISTRIES'
|
||||||
|
|
||||||
|
property 'forge.logging.console.level', 'debug'
|
||||||
|
|
||||||
|
args '--mod', 'supernova', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
|
||||||
|
|
||||||
|
mods {
|
||||||
|
supernova {
|
||||||
|
source sourceSets.main
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets.main.resources { srcDir 'src/generated/resources' }
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
|
||||||
|
minecraft 'net.minecraftforge:forge:1.16.5-36.2.34'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Example for how to get properties into the manifest for reading by the runtime..
|
||||||
|
jar {
|
||||||
|
manifest {
|
||||||
|
attributes([
|
||||||
|
"Specification-Title": "supernova",
|
||||||
|
"Specification-Vendor": "supernovasareus",
|
||||||
|
"Specification-Version": "1", // We are version 1 of ourselves
|
||||||
|
"Implementation-Title": project.name,
|
||||||
|
"Implementation-Version": "${version}",
|
||||||
|
"Implementation-Vendor" :"supernovasareus",
|
||||||
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
|
||||||
|
])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
jar.finalizedBy('reobfJar')
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
mavenJava(MavenPublication) {
|
||||||
|
artifact jar
|
||||||
|
}
|
||||||
|
}
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url "file:///${project.projectDir}/mcmodsrepo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11935
changelog.txt
Normal file
11935
changelog.txt
Normal file
File diff suppressed because it is too large
Load Diff
4
gradle.properties
Normal file
4
gradle.properties
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
|
||||||
|
# This is required to provide enough memory for the Minecraft decompilation process.
|
||||||
|
org.gradle.jvmargs=-Xmx3G
|
||||||
|
org.gradle.daemon=false
|
||||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
5
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
5
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
distributionBase=GRADLE_USER_HOME
|
||||||
|
distributionPath=wrapper/dists
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
|
||||||
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
zipStorePath=wrapper/dists
|
||||||
185
gradlew
vendored
Normal file
185
gradlew
vendored
Normal file
@@ -0,0 +1,185 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
#
|
||||||
|
# Copyright 2015 the original author or 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
##
|
||||||
|
## Gradle start up script for UN*X
|
||||||
|
##
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# Attempt to set APP_HOME
|
||||||
|
# Resolve links: $0 may be a link
|
||||||
|
PRG="$0"
|
||||||
|
# Need this for relative symlinks.
|
||||||
|
while [ -h "$PRG" ] ; do
|
||||||
|
ls=`ls -ld "$PRG"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
PRG="$link"
|
||||||
|
else
|
||||||
|
PRG=`dirname "$PRG"`"/$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
SAVED="`pwd`"
|
||||||
|
cd "`dirname \"$PRG\"`/" >/dev/null
|
||||||
|
APP_HOME="`pwd -P`"
|
||||||
|
cd "$SAVED" >/dev/null
|
||||||
|
|
||||||
|
APP_NAME="Gradle"
|
||||||
|
APP_BASE_NAME=`basename "$0"`
|
||||||
|
|
||||||
|
# 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"'
|
||||||
|
|
||||||
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
|
MAX_FD="maximum"
|
||||||
|
|
||||||
|
warn () {
|
||||||
|
echo "$*"
|
||||||
|
}
|
||||||
|
|
||||||
|
die () {
|
||||||
|
echo
|
||||||
|
echo "$*"
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
# 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
|
||||||
|
;;
|
||||||
|
MINGW* )
|
||||||
|
msys=true
|
||||||
|
;;
|
||||||
|
NONSTOP* )
|
||||||
|
nonstop=true
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||||
|
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
which java >/dev/null 2>&1 || 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
|
||||||
|
|
||||||
|
# Increase the maximum file descriptors if we can.
|
||||||
|
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
||||||
|
MAX_FD_LIMIT=`ulimit -H -n`
|
||||||
|
if [ $? -eq 0 ] ; then
|
||||||
|
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||||
|
MAX_FD="$MAX_FD_LIMIT"
|
||||||
|
fi
|
||||||
|
ulimit -n $MAX_FD
|
||||||
|
if [ $? -ne 0 ] ; then
|
||||||
|
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For Darwin, add options to specify how the application appears in the dock
|
||||||
|
if $darwin; then
|
||||||
|
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||||
|
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
||||||
|
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||||
|
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||||
|
|
||||||
|
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||||
|
|
||||||
|
# We build the pattern for arguments to be converted via cygpath
|
||||||
|
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||||
|
SEP=""
|
||||||
|
for dir in $ROOTDIRSRAW ; do
|
||||||
|
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||||
|
SEP="|"
|
||||||
|
done
|
||||||
|
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||||
|
# Add a user-defined pattern to the cygpath arguments
|
||||||
|
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||||
|
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||||
|
fi
|
||||||
|
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||||
|
i=0
|
||||||
|
for arg in "$@" ; do
|
||||||
|
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||||
|
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||||
|
|
||||||
|
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||||
|
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||||
|
else
|
||||||
|
eval `echo args$i`="\"$arg\""
|
||||||
|
fi
|
||||||
|
i=`expr $i + 1`
|
||||||
|
done
|
||||||
|
case $i in
|
||||||
|
0) set -- ;;
|
||||||
|
1) set -- "$args0" ;;
|
||||||
|
2) set -- "$args0" "$args1" ;;
|
||||||
|
3) set -- "$args0" "$args1" "$args2" ;;
|
||||||
|
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||||
|
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||||
|
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||||
|
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||||
|
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||||
|
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Escape application args
|
||||||
|
save () {
|
||||||
|
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||||
|
echo " "
|
||||||
|
}
|
||||||
|
APP_ARGS=`save "$@"`
|
||||||
|
|
||||||
|
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||||
|
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
||||||
|
|
||||||
|
exec "$JAVACMD" "$@"
|
||||||
89
gradlew.bat
vendored
Normal file
89
gradlew.bat
vendored
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
@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
|
||||||
|
|
||||||
|
@if "%DEBUG%" == "" @echo off
|
||||||
|
@rem ##########################################################################
|
||||||
|
@rem
|
||||||
|
@rem Gradle startup script for Windows
|
||||||
|
@rem
|
||||||
|
@rem ##########################################################################
|
||||||
|
|
||||||
|
@rem Set local scope for the variables with windows NT shell
|
||||||
|
if "%OS%"=="Windows_NT" setlocal
|
||||||
|
|
||||||
|
set DIRNAME=%~dp0
|
||||||
|
if "%DIRNAME%" == "" set DIRNAME=.
|
||||||
|
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%" == "0" goto execute
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
echo location of your Java installation.
|
||||||
|
|
||||||
|
goto fail
|
||||||
|
|
||||||
|
:findJavaFromJavaHome
|
||||||
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
|
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||||
|
|
||||||
|
if exist "%JAVA_EXE%" goto execute
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||||
|
echo.
|
||||||
|
echo Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
echo location of your Java installation.
|
||||||
|
|
||||||
|
goto fail
|
||||||
|
|
||||||
|
:execute
|
||||||
|
@rem Setup the command line
|
||||||
|
|
||||||
|
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||||
|
|
||||||
|
|
||||||
|
@rem Execute Gradle
|
||||||
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||||
|
|
||||||
|
:end
|
||||||
|
@rem End local scope for the variables with windows NT shell
|
||||||
|
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||||
|
|
||||||
|
:fail
|
||||||
|
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||||
|
rem the _cmd.exe /c_ return code!
|
||||||
|
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||||
|
exit /b 1
|
||||||
|
|
||||||
|
:mainEnd
|
||||||
|
if "%OS%"=="Windows_NT" endlocal
|
||||||
|
|
||||||
|
:omega
|
||||||
95
plan.txt
Normal file
95
plan.txt
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
Metal Variations:
|
||||||
|
Ore: Mining
|
||||||
|
Ingot: Smelting
|
||||||
|
Rod \
|
||||||
|
Sheet |> Pressing
|
||||||
|
Bar /
|
||||||
|
|
||||||
|
Piston (pressing) + Carborundum Block + Mould Block -> Pressed Item
|
||||||
|
|
||||||
|
Mould Block: Brick + Carborundum + Steel
|
||||||
|
|
||||||
|
Boiler:
|
||||||
|
Bucket of Salt Water -> Brine + Salt
|
||||||
|
|
||||||
|
Condenser:
|
||||||
|
Cow/Human -> Liquid Methane
|
||||||
|
Leaf Block -> Liquid Oxygen
|
||||||
|
|
||||||
|
Small Canister:
|
||||||
|
Steel + Glass
|
||||||
|
|
||||||
|
Medium Canister:
|
||||||
|
|
||||||
|
Large Canister:
|
||||||
|
|
||||||
|
|
||||||
|
Cable:
|
||||||
|
Wool + Copper Ingot
|
||||||
|
|
||||||
|
Heavy Duty Cable:
|
||||||
|
Wool + + Copper Wire
|
||||||
|
|
||||||
|
water_Pipe:
|
||||||
|
Aluminium
|
||||||
|
|
||||||
|
Gas Pipe: For liquids that need high pressures
|
||||||
|
Glass + Steel
|
||||||
|
|
||||||
|
Molten Pipe: For liquids
|
||||||
|
|
||||||
|
Heavy Duty Pipe:
|
||||||
|
|
||||||
|
Compressor: Puts liquids into containers
|
||||||
|
|
||||||
|
|
||||||
|
Electrolysis Cell: Brick + Carborundum + + Diamond
|
||||||
|
Brine -> Chlorine Gas
|
||||||
|
Water -> Hydrogen
|
||||||
|
Molten Rutile + Chlorine Gas -> Titanium Ingot
|
||||||
|
Molten Bauxite -> Aluminium Ingot
|
||||||
|
|
||||||
|
Blast Furnace:
|
||||||
|
Silica + Coal -> Carborundum
|
||||||
|
|
||||||
|
Electric Arc Furnace: Brick + Carborundum + Copper Ingot + Diamond
|
||||||
|
Aluminium Ingot + Copper Ingot -> Molten Grade 1 Alloy
|
||||||
|
Aluminium Ingot + Copper Ingot + Silicon -> Molten Grade 2 Alloy
|
||||||
|
Aluminium Ingot + Titanium Ingot + Iron Ore -> Molten Grade 3 Alloy
|
||||||
|
Silica + Coal -> Silicon
|
||||||
|
Otherwise Has Metal -> Lava/Slag
|
||||||
|
Otherwise Has Organic -> Charcoal
|
||||||
|
Iron + Coal -> Steel
|
||||||
|
|
||||||
|
Electric Generator:
|
||||||
|
Charcoal/Coal -> Energy
|
||||||
|
|
||||||
|
Electric Flywheel:
|
||||||
|
Copper Block + Steel Ingot + Copper Wire
|
||||||
|
|
||||||
|
Electric Batteries:
|
||||||
|
|
||||||
|
|
||||||
|
Solar Panel:
|
||||||
|
|
||||||
|
Solid Fuel Engine:
|
||||||
|
Sugar +
|
||||||
|
|
||||||
|
Liquid Fuel Engine:
|
||||||
|
|
||||||
|
Rocket:
|
||||||
|
Engine Slot: Solid Fuel Engine / Liquid Fuel Engine
|
||||||
|
Fuel Slot: Methane / Hydrogen
|
||||||
|
Oxidiser Slot: Liquid Oxygen
|
||||||
|
|
||||||
|
|
||||||
|
Tether Torch: Connecting oxygen supplies to players and lighting up areas
|
||||||
|
Aluminium Rod +
|
||||||
|
|
||||||
|
Silica:
|
||||||
|
Break sand to get silica
|
||||||
|
|
||||||
|
Rocket Assembly Bench: idk idk idk
|
||||||
|
|
||||||
|
Rutile Rarity = Diamond
|
||||||
|
Bauxite Rarity = Iron
|
||||||
5
settings.gradle
Normal file
5
settings.gradle
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
pluginManagement {
|
||||||
|
repositories {
|
||||||
|
maven { url = 'https://maven.parchmentmc.org' } // Add this line
|
||||||
|
}
|
||||||
|
}
|
||||||
108
src/main/java/dev/halbear1/supernova/SuperNova.java
Normal file
108
src/main/java/dev/halbear1/supernova/SuperNova.java
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
package dev.halbear1.supernova;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.registry.ModParticles;
|
||||||
|
import dev.halbear1.supernova.registry.blocks.ModBlocks;
|
||||||
|
import dev.halbear1.supernova.registry.blocks.ModFluids;
|
||||||
|
import dev.halbear1.supernova.registry.items.ModItems;
|
||||||
|
import dev.halbear1.supernova.registry.util.ModSoundEvents;
|
||||||
|
import dev.halbear1.supernova.registry.worldgen.ModBiomes;
|
||||||
|
import dev.halbear1.supernova.registry.worldgen.ModConfiguredFeatures;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
import net.minecraft.util.RegistryKey;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import net.minecraft.util.registry.Registry;
|
||||||
|
import net.minecraftforge.common.MinecraftForge;
|
||||||
|
import net.minecraftforge.event.RegistryEvent;
|
||||||
|
import net.minecraftforge.event.entity.player.PlayerEvent;
|
||||||
|
import net.minecraftforge.eventbus.api.IEventBus;
|
||||||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.InterModComms;
|
||||||
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
||||||
|
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
|
||||||
|
import net.minecraftforge.fml.event.lifecycle.InterModEnqueueEvent;
|
||||||
|
import net.minecraftforge.fml.event.lifecycle.InterModProcessEvent;
|
||||||
|
import net.minecraftforge.fml.event.server.FMLServerStartingEvent;
|
||||||
|
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
// The value here should match an entry in the META-INF/mods.toml file
|
||||||
|
@Mod(SuperNova.MOD_ID)
|
||||||
|
public class SuperNova // to chef, peaceful and pal, no touchy
|
||||||
|
{
|
||||||
|
// string for the 'supernova' mod ID, this string will be used A LOT throughout the project to avoid retyping this variable
|
||||||
|
public static final String MOD_ID = "supernova";
|
||||||
|
// Directly reference a log4j logger.
|
||||||
|
private static final Logger LOGGER = LogManager.getLogger();
|
||||||
|
|
||||||
|
public SuperNova() { //hal
|
||||||
|
//creates a mod event bus
|
||||||
|
IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus();
|
||||||
|
//register the mod elements on the mod event bus (loads them)
|
||||||
|
ModBlocks.BLOCKS.register(bus);
|
||||||
|
ModItems.ITEMS.register(bus);
|
||||||
|
ModFluids.FLUIDS.register(bus);
|
||||||
|
ModSoundEvents.SOUND_EVENTS.register(bus);
|
||||||
|
ModBiomes.BIOMES.register(bus);
|
||||||
|
ModParticles.PARTICLE_TYPES.register(bus);
|
||||||
|
//ModEntities.ENTITIES.register(bus);
|
||||||
|
//ModFeatures.FEATURES.register(bus);
|
||||||
|
//ModSurfaceBuilders.SURFACE_BUILDERS.register(bus);
|
||||||
|
//ModBiomes.registerBiomes();
|
||||||
|
|
||||||
|
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup);
|
||||||
|
// Register the enqueueIMC method for modloading
|
||||||
|
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::enqueueIMC);
|
||||||
|
// Register the processIMC method for modloading
|
||||||
|
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::processIMC);
|
||||||
|
// Register the doClientStuff method for modloading
|
||||||
|
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff);
|
||||||
|
|
||||||
|
bus.addListener(this::setup);
|
||||||
|
|
||||||
|
MinecraftForge.EVENT_BUS.register(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void setup(final FMLCommonSetupEvent event) {
|
||||||
|
event.enqueueWork(ModConfiguredFeatures::registerConfiguredFeatures);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void doClientStuff(final FMLClientSetupEvent event) {
|
||||||
|
// do something that can only be done on the client
|
||||||
|
}
|
||||||
|
|
||||||
|
private void enqueueIMC(final InterModEnqueueEvent event)
|
||||||
|
{
|
||||||
|
// some example code to dispatch IMC to another mod
|
||||||
|
InterModComms.sendTo(SuperNova.MOD_ID, "helloworld", () -> { LOGGER.info("Hello world from the MDK"); return "Hello world";});
|
||||||
|
}
|
||||||
|
|
||||||
|
private void processIMC(final InterModProcessEvent event)
|
||||||
|
{
|
||||||
|
// some example code to receive and process InterModComms from other mods
|
||||||
|
LOGGER.info("Got IMC {}", event.getIMCStream().
|
||||||
|
map(m->m.getMessageSupplier().get()).
|
||||||
|
collect(Collectors.toList()));
|
||||||
|
}
|
||||||
|
// You can use SubscribeEvent and let the Event Bus discover methods to call
|
||||||
|
@SubscribeEvent
|
||||||
|
public void onServerStarting(FMLServerStartingEvent event) {
|
||||||
|
// do something when the server starts
|
||||||
|
LOGGER.info("HELLO from server starting");
|
||||||
|
}
|
||||||
|
|
||||||
|
// You can use EventBusSubscriber to automatically subscribe events on the contained class (this is subscribing to the MOD
|
||||||
|
// Event bus for receiving Registry Events)
|
||||||
|
@Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD)
|
||||||
|
public static class RegistryEvents {
|
||||||
|
@SubscribeEvent
|
||||||
|
public static void onBlocksRegistry(final RegistryEvent.Register<Block> blockRegistryEvent) {
|
||||||
|
// register a new block here
|
||||||
|
LOGGER.info("HELLO from Register Block");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
package dev.halbear1.supernova.custom.block;
|
||||||
|
|
||||||
|
import net.minecraft.block.*;
|
||||||
|
import net.minecraft.item.BlockItemUseContext;
|
||||||
|
import net.minecraft.state.DirectionProperty;
|
||||||
|
import net.minecraft.state.StateContainer;
|
||||||
|
import net.minecraft.state.properties.BlockStateProperties;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
|
public class ArcFurnace extends HorizontalBlock{
|
||||||
|
|
||||||
|
public static final DirectionProperty HORIZONTAL_FACING = BlockStateProperties.HORIZONTAL_FACING;
|
||||||
|
|
||||||
|
public ArcFurnace(Properties builder){
|
||||||
|
super(builder);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void fillStateContainer(StateContainer.Builder<Block, BlockState> builder){
|
||||||
|
builder.add(HORIZONTAL_FACING);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public BlockState getStateForPlacement(BlockItemUseContext context){
|
||||||
|
return this.getDefaultState().with(HORIZONTAL_FACING, context.getPlacementHorizontalFacing().getOpposite());
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
package dev.halbear1.supernova.custom.block;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.registry.blocks.ModBlocks;
|
||||||
|
import dev.halbear1.supernova.registry.worldgen.ModDimensions;
|
||||||
|
import dev.halbear1.supernova.world.dimension.DebugTeleporter;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.BlockState;
|
||||||
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
import net.minecraft.server.MinecraftServer;
|
||||||
|
import net.minecraft.util.ActionResultType;
|
||||||
|
import net.minecraft.util.Hand;
|
||||||
|
import net.minecraft.util.Util;
|
||||||
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
import net.minecraft.util.math.BlockRayTraceResult;
|
||||||
|
import net.minecraft.util.text.ChatType;
|
||||||
|
import net.minecraft.util.text.StringTextComponent;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraft.world.server.ServerWorld;
|
||||||
|
|
||||||
|
public class DebugPortalBlock extends Block {
|
||||||
|
public DebugPortalBlock(Properties p_i48440_1_) {
|
||||||
|
super(p_i48440_1_);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public ActionResultType onBlockActivated(BlockState bstate, World worldin, BlockPos blockPos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit){
|
||||||
|
if (!worldin.isRemote){
|
||||||
|
if (!player.isCrouching()){
|
||||||
|
MinecraftServer server = worldin.getServer();
|
||||||
|
if (server != null){
|
||||||
|
if(worldin.getBlockState(blockPos.down(1).east(1)).matchesBlock(ModBlocks.DEBUG_PORTAL_BLOCK.get())&&
|
||||||
|
worldin.getBlockState(blockPos.down(1).west(1)).matchesBlock(ModBlocks.DEBUG_PORTAL_BLOCK.get()) &&
|
||||||
|
worldin.getBlockState(blockPos.up(1)).matchesBlock(ModBlocks.DEBUG_PORTAL_BLOCK.get()) &&
|
||||||
|
worldin.getBlockState(blockPos.up(2)).matchesBlock(ModBlocks.DEBUG_PORTAL_BLOCK.get())) {
|
||||||
|
DimensionSwitch(worldin, blockPos, player);
|
||||||
|
server.getPlayerList().func_232641_a_(new StringTextComponent("dimension changed portal"), ChatType.SYSTEM, Util.DUMMY_UUID);
|
||||||
|
return ActionResultType.SUCCESS;
|
||||||
|
} else if (worldin.getBlockState(blockPos.down(1).north(1)).matchesBlock(ModBlocks.DEBUG_PORTAL_BLOCK.get())&&
|
||||||
|
worldin.getBlockState(blockPos.down(1).south(1)).matchesBlock(ModBlocks.DEBUG_PORTAL_BLOCK.get()) &&
|
||||||
|
worldin.getBlockState(blockPos.up(1)).matchesBlock(ModBlocks.DEBUG_PORTAL_BLOCK.get()) &&
|
||||||
|
worldin.getBlockState(blockPos.up(2)).matchesBlock(ModBlocks.DEBUG_PORTAL_BLOCK.get())) {
|
||||||
|
DimensionSwitch(worldin, blockPos, player);
|
||||||
|
server.getPlayerList().func_232641_a_(new StringTextComponent("dimension changed portal"), ChatType.SYSTEM, Util.DUMMY_UUID);
|
||||||
|
return ActionResultType.SUCCESS;
|
||||||
|
} else if(worldin.getBlockState(blockPos).matchesBlock(ModBlocks.DEBUG_PORTAL_BLOCK.get())) {
|
||||||
|
DimensionSwitch(worldin, blockPos, player);
|
||||||
|
server.getPlayerList().func_232641_a_(new StringTextComponent("dimension changed portal"), ChatType.SYSTEM, Util.DUMMY_UUID);
|
||||||
|
return ActionResultType.SUCCESS;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return super.onBlockActivated(bstate, worldin, blockPos, player, handIn, hit);
|
||||||
|
}
|
||||||
|
private static void DimensionSwitch(World worldin, BlockPos blockPos, PlayerEntity player){
|
||||||
|
MinecraftServer server = worldin.getServer();
|
||||||
|
if (worldin.getDimensionKey() == ModDimensions.SPACE) {
|
||||||
|
ServerWorld OverWorld = server.getWorld(World.OVERWORLD);
|
||||||
|
if (OverWorld != null) {
|
||||||
|
player.changeDimension(OverWorld, new DebugTeleporter(blockPos, true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (worldin.getDimensionKey() != ModDimensions.SPACE) {
|
||||||
|
ServerWorld OverWorld = server.getWorld(ModDimensions.SPACE);
|
||||||
|
if (OverWorld != null) {
|
||||||
|
player.changeDimension(OverWorld, new DebugTeleporter(blockPos, true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
package dev.halbear1.supernova.custom.block;
|
||||||
|
|
||||||
|
import net.minecraft.block.*;
|
||||||
|
import net.minecraft.item.BlockItemUseContext;
|
||||||
|
import net.minecraft.state.DirectionProperty;
|
||||||
|
import net.minecraft.state.StateContainer;
|
||||||
|
import net.minecraft.state.properties.BlockStateProperties;
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
|
public class HorizontalRotationalDecorBlock extends HorizontalBlock{
|
||||||
|
|
||||||
|
public static final DirectionProperty HORIZONTAL_FACING = BlockStateProperties.HORIZONTAL_FACING;
|
||||||
|
|
||||||
|
public HorizontalRotationalDecorBlock(Properties builder){
|
||||||
|
super(builder);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void fillStateContainer(StateContainer.Builder<Block, BlockState> builder){
|
||||||
|
builder.add(HORIZONTAL_FACING);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public BlockState getStateForPlacement(BlockItemUseContext context){
|
||||||
|
return this.getDefaultState().with(HORIZONTAL_FACING, context.getPlacementHorizontalFacing().getOpposite());
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,105 @@
|
|||||||
|
package dev.halbear1.supernova.custom.block;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.custom.block.blockstate_stuff.SupernovaBlockstates;
|
||||||
|
import dev.halbear1.supernova.registry.blocks.ModBlocks;
|
||||||
|
import net.minecraft.block.*;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraft.item.BlockItemUseContext;
|
||||||
|
import net.minecraft.state.BooleanProperty;
|
||||||
|
import net.minecraft.state.DirectionProperty;
|
||||||
|
import net.minecraft.state.EnumProperty;
|
||||||
|
import dev.halbear1.supernova.custom.block.blockstate_stuff.enums.PipeContents;
|
||||||
|
import net.minecraft.state.StateContainer;
|
||||||
|
import net.minecraft.state.properties.BlockStateProperties;
|
||||||
|
import net.minecraft.util.Direction;
|
||||||
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
import net.minecraft.util.math.shapes.ISelectionContext;
|
||||||
|
import net.minecraft.util.math.shapes.VoxelShape;
|
||||||
|
import net.minecraft.world.IBlockReader;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
|
public class StraightSteelPipe extends DirectionalBlock {
|
||||||
|
public static final DirectionProperty FACING = BlockStateProperties.FACING;
|
||||||
|
public static final BooleanProperty FLOOR_PLACEMENT = BooleanProperty.create("floor_placement");
|
||||||
|
public static final BooleanProperty ROOF_PLACEMENT = BooleanProperty.create("roof_placement");
|
||||||
|
public static final EnumProperty<PipeContents> PIPE_CONTENTS_EMPTY;
|
||||||
|
public static final EnumProperty<PipeContents> PIPE_CONTENTS_OIL;
|
||||||
|
public static final EnumProperty<PipeContents> PIPE_CONTENTS_WATER;
|
||||||
|
public static final EnumProperty<PipeContents> PIPE_CONTENTS_LAVA;
|
||||||
|
public static final EnumProperty<PipeContents> PIPE_CONTENTS_SALTWATER;
|
||||||
|
public static final DirectionProperty FLOW_DIRECTION = DirectionProperty.create("flow_direction");
|
||||||
|
|
||||||
|
public StraightSteelPipe(AbstractBlock.Properties builder){
|
||||||
|
super(builder);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final VoxelShape NORTHBOX = Block.makeCuboidShape(4, 4, 0, 12, 12, 16);
|
||||||
|
private static final VoxelShape WESTBOX = Block.makeCuboidShape(0, 4, 4, 16, 12, 12);
|
||||||
|
private static final VoxelShape VERTICALBOX = Block.makeCuboidShape(4, 0, 4, 12, 16, 12);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos position, ISelectionContext context){
|
||||||
|
switch (state.get(FACING)){
|
||||||
|
case NORTH:
|
||||||
|
return NORTHBOX;
|
||||||
|
case SOUTH:
|
||||||
|
return NORTHBOX;
|
||||||
|
case WEST:
|
||||||
|
return WESTBOX;
|
||||||
|
case EAST:
|
||||||
|
return WESTBOX;
|
||||||
|
case UP:
|
||||||
|
return VERTICALBOX;
|
||||||
|
case DOWN:
|
||||||
|
return VERTICALBOX;
|
||||||
|
default:
|
||||||
|
return NORTHBOX;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void fillStateContainer(StateContainer.Builder<Block, BlockState> builder){
|
||||||
|
builder.add(FACING, FLOOR_PLACEMENT, ROOF_PLACEMENT);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public BlockState getStateForPlacement(BlockItemUseContext context) {
|
||||||
|
BlockPos placementPos = context.getPos();
|
||||||
|
World world = context.getWorld();
|
||||||
|
int PlacementX = placementPos.getX();
|
||||||
|
int PlacementY = placementPos.getY();
|
||||||
|
int PlacementZ = placementPos.getZ();
|
||||||
|
Direction facing = context.getNearestLookingDirection().getOpposite();
|
||||||
|
boolean OnGround = false;
|
||||||
|
boolean OnRoof = false;
|
||||||
|
if (world.getBlockState(placementPos.down()).getBlock()!=Blocks.AIR &&
|
||||||
|
world.getBlockState(placementPos.down()).getMaterial() != Material.PLANTS &&
|
||||||
|
!world.getBlockState(placementPos.down()).isReplaceable(context) &&
|
||||||
|
world.getBlockState(placementPos.down()).getBlock()!=ModBlocks.STEEL_PIPE.get()
|
||||||
|
&& facing != Direction.UP && facing != Direction.DOWN){
|
||||||
|
OnGround = true;
|
||||||
|
} else if(world.getBlockState(placementPos.down()).getBlockState().getMaterial() == Material.WOOD){
|
||||||
|
OnGround = true;
|
||||||
|
}
|
||||||
|
if (world.getBlockState(placementPos.up()).getBlock()!=Blocks.AIR &&
|
||||||
|
world.getBlockState(placementPos.up()).getBlock()!=ModBlocks.STEEL_PIPE.get()
|
||||||
|
&& !OnGround && facing != Direction.UP && facing != Direction.DOWN){
|
||||||
|
OnRoof = true;
|
||||||
|
}
|
||||||
|
return this.getDefaultState()
|
||||||
|
.with(FACING, facing)
|
||||||
|
.with(FLOOR_PLACEMENT, OnGround)
|
||||||
|
.with(ROOF_PLACEMENT, OnRoof);
|
||||||
|
}
|
||||||
|
|
||||||
|
static {
|
||||||
|
PIPE_CONTENTS_EMPTY = SupernovaBlockstates.EMPTY_PIPE;
|
||||||
|
PIPE_CONTENTS_OIL = SupernovaBlockstates.CRUDE_OIL_PIPE;
|
||||||
|
PIPE_CONTENTS_LAVA = SupernovaBlockstates.LAVA_PIPE;
|
||||||
|
PIPE_CONTENTS_SALTWATER = SupernovaBlockstates.SALT_WATER_PIPE;
|
||||||
|
PIPE_CONTENTS_WATER = SupernovaBlockstates.WATER_PIPE;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
package dev.halbear1.supernova.custom.block.blockstate_stuff;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.custom.block.blockstate_stuff.enums.PipeContents;
|
||||||
|
import net.minecraft.state.EnumProperty;
|
||||||
|
|
||||||
|
public class SupernovaBlockstates {
|
||||||
|
public static final EnumProperty<PipeContents> EMPTY_PIPE;
|
||||||
|
public static final EnumProperty<PipeContents> CRUDE_OIL_PIPE;
|
||||||
|
public static final EnumProperty<PipeContents> WATER_PIPE;
|
||||||
|
public static final EnumProperty<PipeContents> LAVA_PIPE;
|
||||||
|
public static final EnumProperty<PipeContents> SALT_WATER_PIPE;
|
||||||
|
|
||||||
|
static {
|
||||||
|
EMPTY_PIPE = EnumProperty.create("empty", PipeContents.class);
|
||||||
|
CRUDE_OIL_PIPE = EnumProperty.create("crude_oil", PipeContents.class);
|
||||||
|
WATER_PIPE = EnumProperty.create("water", PipeContents.class);
|
||||||
|
LAVA_PIPE = EnumProperty.create("lava", PipeContents.class);
|
||||||
|
SALT_WATER_PIPE = EnumProperty.create("salt_water", PipeContents.class);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
package dev.halbear1.supernova.custom.block.blockstate_stuff.enums;
|
||||||
|
|
||||||
|
import net.minecraft.util.IStringSerializable;
|
||||||
|
|
||||||
|
public enum PipeContents implements IStringSerializable {
|
||||||
|
EMPTY("empty"),
|
||||||
|
FLOWING("flowing");
|
||||||
|
|
||||||
|
private final String name;
|
||||||
|
|
||||||
|
private PipeContents(String Name) {
|
||||||
|
this.name = Name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
return this.name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getString() {
|
||||||
|
return this.name;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package dev.halbear1.supernova.custom.fluid;
|
||||||
|
|
||||||
|
import net.minecraft.block.FlowingFluidBlock;
|
||||||
|
import net.minecraft.fluid.FlowingFluid;
|
||||||
|
|
||||||
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
|
public class FlammableFluid extends FlowingFluidBlock {
|
||||||
|
|
||||||
|
public FlammableFluid(Supplier<? extends SupernovaFlowingFluid> supplier, Properties properties) {
|
||||||
|
super(supplier, properties);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,191 @@
|
|||||||
|
package dev.halbear1.supernova.custom.fluid;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.BlockState;
|
||||||
|
import net.minecraft.block.Blocks;
|
||||||
|
import net.minecraft.block.FlowingFluidBlock;
|
||||||
|
import net.minecraft.fluid.FlowingFluid;
|
||||||
|
import net.minecraft.fluid.Fluid;
|
||||||
|
import net.minecraft.fluid.FluidState;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import net.minecraft.item.Items;
|
||||||
|
import net.minecraft.state.Property;
|
||||||
|
import net.minecraft.state.StateContainer;
|
||||||
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
import net.minecraft.util.Direction;
|
||||||
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
import net.minecraft.world.IBlockReader;
|
||||||
|
import net.minecraft.world.IWorld;
|
||||||
|
import net.minecraft.world.IWorldReader;
|
||||||
|
import net.minecraftforge.fluids.FluidAttributes;
|
||||||
|
import net.minecraftforge.fluids.ForgeFlowingFluid;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
|
public abstract class SupernovaFlowingFluid extends FlowingFluid {
|
||||||
|
private final Supplier<? extends Fluid> flowing;
|
||||||
|
private final Supplier<? extends Fluid> still;
|
||||||
|
private final FluidAttributes.Builder FluidBuilder;
|
||||||
|
private final SupernovaFluidAttributes.SupernovaFluidBuilder ExtendedBuilder;
|
||||||
|
@Nullable
|
||||||
|
private final Supplier<? extends Item> bucket;
|
||||||
|
@Nullable
|
||||||
|
private final Supplier<? extends FlammableFluid> block;
|
||||||
|
private final boolean canMultiply;
|
||||||
|
private final int slopeFindDistance;
|
||||||
|
private final int levelDecreasePerBlock;
|
||||||
|
private final float explosionResistance;
|
||||||
|
private final int tickRate;
|
||||||
|
|
||||||
|
protected SupernovaFlowingFluid(Properties properties) {
|
||||||
|
this.FluidBuilder = properties.attributes;
|
||||||
|
this.flowing = properties.flowing;
|
||||||
|
this.still = properties.still;
|
||||||
|
this.canMultiply = properties.canMultiply;
|
||||||
|
this.bucket = properties.bucket;
|
||||||
|
this.block = properties.block;
|
||||||
|
this.slopeFindDistance = properties.slopeFindDistance;
|
||||||
|
this.levelDecreasePerBlock = properties.levelDecreasePerBlock;
|
||||||
|
this.explosionResistance = properties.explosionResistance;
|
||||||
|
this.tickRate = properties.tickRate;
|
||||||
|
this.ExtendedBuilder = properties.extended_attributes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Fluid getFlowingFluid() {
|
||||||
|
return (Fluid)this.flowing.get();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Fluid getStillFluid() {
|
||||||
|
return (Fluid)this.still.get();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected boolean canSourcesMultiply() {
|
||||||
|
return this.canMultiply;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void beforeReplacingBlock(IWorld worldIn, BlockPos pos, BlockState state) {
|
||||||
|
TileEntity tileentity = state.getBlock().hasTileEntity(state) ? worldIn.getTileEntity(pos) : null;
|
||||||
|
Block.spawnDrops(state, worldIn, pos, tileentity);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected int getSlopeFindDistance(IWorldReader worldIn) {
|
||||||
|
return this.slopeFindDistance;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected int getLevelDecreasePerBlock(IWorldReader worldIn) {
|
||||||
|
return this.levelDecreasePerBlock;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Item getFilledBucket() {
|
||||||
|
return this.bucket != null ? (Item)this.bucket.get() : Items.AIR;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected boolean canDisplace(FluidState state, IBlockReader world, BlockPos pos, Fluid fluidIn, Direction direction) {
|
||||||
|
return direction == Direction.DOWN && !this.isEquivalentTo(fluidIn);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTickRate(IWorldReader world) {
|
||||||
|
return this.tickRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected float getExplosionResistance() {
|
||||||
|
return this.explosionResistance;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected BlockState getBlockState(FluidState state) {
|
||||||
|
return this.block != null ? (BlockState)((FlowingFluidBlock)this.block.get()).getDefaultState().with(FlowingFluidBlock.LEVEL, getLevelFromState(state)) : Blocks.AIR.getDefaultState();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isEquivalentTo(Fluid fluidIn) {
|
||||||
|
return fluidIn == this.still.get() || fluidIn == this.flowing.get();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
protected FluidAttributes createAttributes() {
|
||||||
|
return this.FluidBuilder.build(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Properties {
|
||||||
|
private Supplier<? extends Fluid> still;
|
||||||
|
private Supplier<? extends Fluid> flowing;
|
||||||
|
private FluidAttributes.Builder attributes;
|
||||||
|
private SupernovaFluidAttributes.SupernovaFluidBuilder extended_attributes;
|
||||||
|
private boolean canMultiply;
|
||||||
|
private Supplier<? extends Item> bucket;
|
||||||
|
private Supplier<? extends FlammableFluid> block;
|
||||||
|
private int slopeFindDistance = 4;
|
||||||
|
private int levelDecreasePerBlock = 1;
|
||||||
|
private float explosionResistance = 1.0F;
|
||||||
|
private int tickRate = 5;
|
||||||
|
|
||||||
|
public Properties(Supplier<? extends Fluid> still, Supplier<? extends Fluid> flowing, FluidAttributes.Builder attributes, SupernovaFluidAttributes.SupernovaFluidBuilder extended_attributes) {
|
||||||
|
this.still = still;
|
||||||
|
this.flowing = flowing;
|
||||||
|
this.attributes = attributes;
|
||||||
|
this.extended_attributes = extended_attributes;
|
||||||
|
}
|
||||||
|
public SupernovaFlowingFluid.Properties canMultiply() {
|
||||||
|
this.canMultiply = true;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
public SupernovaFlowingFluid.Properties bucket(Supplier<? extends Item> bucket) {
|
||||||
|
this.bucket = bucket;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
public SupernovaFlowingFluid.Properties block(Supplier<? extends FlammableFluid> block) {
|
||||||
|
this.block = block;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
public SupernovaFlowingFluid.Properties slopeFindDistance(int slopeFindDistance) {
|
||||||
|
this.slopeFindDistance = slopeFindDistance;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
public SupernovaFlowingFluid.Properties levelDecreasePerBlock(int levelDecreasePerBlock) {
|
||||||
|
this.levelDecreasePerBlock = levelDecreasePerBlock;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
public SupernovaFlowingFluid.Properties explosionResistance(float explosionResistance) {
|
||||||
|
this.explosionResistance = explosionResistance;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
public SupernovaFlowingFluid.Properties tickRate(int tickRate) {
|
||||||
|
this.tickRate = tickRate;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Source extends SupernovaFlowingFluid {
|
||||||
|
public Source(Properties properties) {
|
||||||
|
super(properties);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getLevel(FluidState state) {
|
||||||
|
return 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSource(FluidState state) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Flowing extends SupernovaFlowingFluid {
|
||||||
|
public Flowing(Properties properties) {
|
||||||
|
super(properties);
|
||||||
|
this.setDefaultState((FluidState)((FluidState)this.getStateContainer().getBaseState()).with(LEVEL_1_8, 7));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void fillStateContainer(StateContainer.Builder<Fluid, FluidState> builder) {
|
||||||
|
super.fillStateContainer(builder);
|
||||||
|
builder.add(new Property[]{LEVEL_1_8});
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getLevel(FluidState state) {
|
||||||
|
return (Integer)state.get(LEVEL_1_8);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSource(FluidState state) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
package dev.halbear1.supernova.custom.fluid;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.registry.blocks.ModBlocks;
|
||||||
|
import jdk.nashorn.internal.ir.Block;
|
||||||
|
import net.minecraft.fluid.Fluid;
|
||||||
|
import net.minecraft.item.Rarity;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import net.minecraft.util.SoundEvent;
|
||||||
|
import net.minecraftforge.fluids.FluidAttributes;
|
||||||
|
|
||||||
|
import java.util.function.BiFunction;
|
||||||
|
|
||||||
|
public class SupernovaFluidAttributes {
|
||||||
|
|
||||||
|
private final boolean flammable;
|
||||||
|
private final boolean ExpandsGas;
|
||||||
|
private final ResourceLocation OverlayTexture;
|
||||||
|
|
||||||
|
protected SupernovaFluidAttributes(SupernovaFluidBuilder ExtendedBuilder, Fluid fluid) {
|
||||||
|
this.flammable = ExtendedBuilder.flammable;
|
||||||
|
this.ExpandsGas = ExtendedBuilder.ExpandsGas;
|
||||||
|
this.OverlayTexture = ExtendedBuilder.OverlayTexture;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static SupernovaFluidBuilder Supernovabuilder(ResourceLocation OVERLAY_TEXTURE) {
|
||||||
|
return new SupernovaFluidBuilder(OVERLAY_TEXTURE, SupernovaFluidAttributes::new);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class SupernovaFluidBuilder {
|
||||||
|
|
||||||
|
private ResourceLocation OverlayTexture;
|
||||||
|
private boolean flammable;
|
||||||
|
private boolean ExpandsGas;
|
||||||
|
|
||||||
|
private BiFunction<SupernovaFluidBuilder, Fluid, SupernovaFluidAttributes> factory;
|
||||||
|
|
||||||
|
protected SupernovaFluidBuilder(ResourceLocation OVERLAY_TEXTURE, BiFunction<SupernovaFluidBuilder, Fluid, SupernovaFluidAttributes> factory) {
|
||||||
|
this.factory = factory;
|
||||||
|
this.OverlayTexture = OVERLAY_TEXTURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final SupernovaFluidBuilder Flammable() {
|
||||||
|
this.flammable = true;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final SupernovaFluidBuilder GasExpands() {
|
||||||
|
this.ExpandsGas = true;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package dev.halbear1.supernova.custom.fluid;
|
||||||
|
|
||||||
|
public class SupernovaOverlayRenderer {
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package dev.halbear1.supernova.data;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
import net.minecraft.data.DataGenerator;
|
||||||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
import net.minecraftforge.fml.event.lifecycle.GatherDataEvent;
|
||||||
|
|
||||||
|
@Mod.EventBusSubscriber(modid = SuperNova.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
|
||||||
|
public class DataGenerators {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
package dev.halbear1.supernova.loot_modifiers;
|
||||||
|
import com.google.gson.JsonObject;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.loot.LootContext;
|
||||||
|
import net.minecraft.loot.conditions.ILootCondition;
|
||||||
|
import net.minecraft.util.JSONUtils;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import net.minecraftforge.common.loot.GlobalLootModifierSerializer;
|
||||||
|
import net.minecraftforge.common.loot.LootModifier;
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
||||||
|
import javax.annotation.Nonnull;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class ModReplaceLootDrop extends LootModifier {
|
||||||
|
private final Item addition;
|
||||||
|
protected ModReplaceLootDrop(ILootCondition[] conditionsIn, Item addition) {
|
||||||
|
super(conditionsIn);
|
||||||
|
this.addition = addition;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nonnull
|
||||||
|
@Override
|
||||||
|
protected List<ItemStack> doApply(List<ItemStack> generatedLoot, LootContext lootContext) {
|
||||||
|
generatedLoot.clear(); // clears the drop that was going to drop
|
||||||
|
generatedLoot.add(new ItemStack(addition)); // adds new drop to the drop
|
||||||
|
return generatedLoot;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Serializer extends GlobalLootModifierSerializer<ModReplaceLootDrop>{
|
||||||
|
@Override
|
||||||
|
public ModReplaceLootDrop read(ResourceLocation name, JsonObject object, ILootCondition[] conditionsIn) {
|
||||||
|
Item addition = ForgeRegistries.ITEMS.getValue(
|
||||||
|
new ResourceLocation(JSONUtils.getString(object, "addition")));
|
||||||
|
return new ModReplaceLootDrop(conditionsIn, addition);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public JsonObject write(ModReplaceLootDrop instance) {
|
||||||
|
JsonObject json = makeConditions(instance.conditions);
|
||||||
|
json.addProperty("addition", ForgeRegistries.ITEMS.getKey(instance.addition).toString());
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
package dev.halbear1.supernova.registry;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
import net.minecraft.inventory.EquipmentSlotType;
|
||||||
|
import net.minecraft.item.IArmorMaterial;
|
||||||
|
import net.minecraft.item.crafting.Ingredient;
|
||||||
|
import net.minecraft.util.LazyValue;
|
||||||
|
import net.minecraft.util.SoundEvent;
|
||||||
|
import net.minecraftforge.api.distmarker.Dist;
|
||||||
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||||
|
|
||||||
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
|
public enum ModArmourMaterial implements IArmorMaterial {;
|
||||||
|
private static final int[] MAX_DAMAGE_ARRAY = new int[]{13, 15, 16, 11};
|
||||||
|
private final String name;
|
||||||
|
private final int maxDamageFactor;
|
||||||
|
private final int[] damageReductionAmountArray;
|
||||||
|
private final int enchantability;
|
||||||
|
private final SoundEvent soundEvent;
|
||||||
|
private final float toughness;
|
||||||
|
private final float knockbackResistance;
|
||||||
|
private final LazyValue<Ingredient> repairMaterial;
|
||||||
|
|
||||||
|
private ModArmourMaterial(String name, int maxDmg, int[] maxDmgReductArr, int enchantability, SoundEvent soundEvent, float toughness, float KnbckResistance, Supplier repairMat) {
|
||||||
|
this.name = name;
|
||||||
|
this.maxDamageFactor = maxDmg;
|
||||||
|
this.damageReductionAmountArray = maxDmgReductArr;
|
||||||
|
this.enchantability = enchantability;
|
||||||
|
this.soundEvent = soundEvent;
|
||||||
|
this.toughness = toughness;
|
||||||
|
this.knockbackResistance = KnbckResistance;
|
||||||
|
this.repairMaterial = new LazyValue(repairMat);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getDurability(EquipmentSlotType equipSlotType) {
|
||||||
|
return MAX_DAMAGE_ARRAY[equipSlotType.getIndex()] * this.maxDamageFactor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getDamageReductionAmount(EquipmentSlotType equipSlotType) {
|
||||||
|
return this.damageReductionAmountArray[equipSlotType.getIndex()];
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getEnchantability() {
|
||||||
|
return this.enchantability;
|
||||||
|
}
|
||||||
|
|
||||||
|
public SoundEvent getSoundEvent() {
|
||||||
|
return this.soundEvent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Ingredient getRepairMaterial() {
|
||||||
|
return (Ingredient)this.repairMaterial.getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
@OnlyIn(Dist.CLIENT)
|
||||||
|
public String getName() {
|
||||||
|
return SuperNova.MOD_ID + ":" + this.name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getToughness() {
|
||||||
|
return this.toughness;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getKnockbackResistance() {
|
||||||
|
return this.knockbackResistance;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package dev.halbear1.supernova.registry;
|
||||||
|
|
||||||
|
public class ModEntities {
|
||||||
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
package dev.halbear1.supernova.registry;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.*;
|
||||||
|
import dev.halbear1.supernova.loot_modifiers.ModReplaceLootDrop;
|
||||||
|
import dev.halbear1.supernova.registry.worldgen.ModDimensions;
|
||||||
|
import net.minecraft.entity.Entity;
|
||||||
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
import net.minecraft.entity.player.ServerPlayerEntity;
|
||||||
|
import net.minecraft.server.MinecraftServer;
|
||||||
|
import net.minecraft.util.RegistryKey;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import net.minecraft.util.Util;
|
||||||
|
import net.minecraft.util.registry.Registry;
|
||||||
|
import net.minecraft.util.text.ChatType;
|
||||||
|
import net.minecraft.util.text.StringTextComponent;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraftforge.client.event.RenderGameOverlayEvent;
|
||||||
|
import net.minecraftforge.common.loot.GlobalLootModifierSerializer;
|
||||||
|
import net.minecraftforge.event.RegistryEvent;
|
||||||
|
import net.minecraftforge.event.ServerChatEvent;
|
||||||
|
import net.minecraftforge.event.entity.player.PlayerEvent;
|
||||||
|
import net.minecraftforge.eventbus.api.Event;
|
||||||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
import net.minecraftforge.fml.server.ServerLifecycleHooks;
|
||||||
|
|
||||||
|
import javax.annotation.Nonnull;
|
||||||
|
|
||||||
|
|
||||||
|
@Mod.EventBusSubscriber(modid = SuperNova.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) //hal
|
||||||
|
public class ModEventBusEvents {
|
||||||
|
@SubscribeEvent
|
||||||
|
public static void registerModifiderSerializers(@Nonnull final RegistryEvent.Register<GlobalLootModifierSerializer<?>>event){ //hal
|
||||||
|
event.getRegistry().registerAll(
|
||||||
|
new ModReplaceLootDrop.Serializer().setRegistryName(
|
||||||
|
new ResourceLocation(SuperNova.MOD_ID,"silica_from_sand")), //hal
|
||||||
|
new ModReplaceLootDrop.Serializer().setRegistryName(
|
||||||
|
new ResourceLocation(SuperNova.MOD_ID,"silica_powder_from_quartz_block")), //hal
|
||||||
|
new ModReplaceLootDrop.Serializer().setRegistryName(
|
||||||
|
new ResourceLocation(SuperNova.MOD_ID,"silica_powder_from_smooth_quartz")) //hal
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package dev.halbear1.supernova.registry;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
import net.minecraft.particles.BasicParticleType;
|
||||||
|
import net.minecraft.particles.ParticleType;
|
||||||
|
import net.minecraftforge.fml.RegistryObject;
|
||||||
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
||||||
|
public class ModParticles {
|
||||||
|
public static final DeferredRegister<ParticleType<?>> PARTICLE_TYPES = DeferredRegister.create(ForgeRegistries.PARTICLE_TYPES, SuperNova.MOD_ID);
|
||||||
|
|
||||||
|
//public static final RegistryObject<BasicParticleType> STAR_SPARKLE = PARTICLE_TYPES.register("star_sparkle", () -> new BasicParticleType(false));
|
||||||
|
}
|
||||||
@@ -0,0 +1,168 @@
|
|||||||
|
package dev.halbear1.supernova.registry.blocks;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.custom.block.ArcFurnace;
|
||||||
|
import dev.halbear1.supernova.custom.block.DebugPortalBlock;
|
||||||
|
import dev.halbear1.supernova.custom.block.StraightSteelPipe;
|
||||||
|
import dev.halbear1.supernova.registry.items.ModItems;
|
||||||
|
import dev.halbear1.supernova.registry.items.ItemGroups;
|
||||||
|
import net.minecraft.block.*;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraft.item.BlockItem;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import net.minecraftforge.common.ToolType;
|
||||||
|
import net.minecraftforge.fml.RegistryObject;
|
||||||
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
||||||
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
|
public class ModBlocks { //hal
|
||||||
|
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, SuperNova.MOD_ID);
|
||||||
|
//the blocks will appear in inventory as in order of declaration here, please keep all block types grouped together
|
||||||
|
//such as group ores together, group organic materials together, keep it relatively organised in both the registry AND the en_us.json - hal
|
||||||
|
|
||||||
|
//REMEMBER TO PUT REGISTERED ITEMS AND BLOCKS IN THE EN_US.JSON, an example would be ""block.supernova.bauxite_ore": "Bauxite Ore","
|
||||||
|
|
||||||
|
//Overworld
|
||||||
|
//ores
|
||||||
|
public static final RegistryObject<Block> BAUXITE_ORE = //hal
|
||||||
|
registerBlock("bauxite_ore", () -> new Block(AbstractBlock.Properties
|
||||||
|
.create(Material.ROCK)
|
||||||
|
.sound(SoundType.STONE)
|
||||||
|
.hardnessAndResistance(3.0f, 3.0f)
|
||||||
|
.harvestLevel(2)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
.setRequiresTool()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> RUTILE_ORE = //hal & pal
|
||||||
|
registerBlock("rutile_ore", () -> new Block(AbstractBlock.Properties
|
||||||
|
.create(Material.ROCK)
|
||||||
|
.sound(SoundType.STONE)
|
||||||
|
.hardnessAndResistance(3.0f, 3.0f)
|
||||||
|
.harvestLevel(3)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
.setRequiresTool()
|
||||||
|
)//pal: tf is a harvest level? hal: pickaxe level required to get drops, 1 is stone, 2 is iron etc...
|
||||||
|
);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> COPPER_ORE = //hal & pal
|
||||||
|
registerBlock("copper_ore", () -> new Block(AbstractBlock.Properties
|
||||||
|
.create(Material.ROCK)
|
||||||
|
.sound(SoundType.STONE)
|
||||||
|
.hardnessAndResistance(3.0f, 3.0f)
|
||||||
|
.harvestLevel(1)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
.setRequiresTool()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
public static final RegistryObject<Block> ANATASE_ORE = //hal & pal
|
||||||
|
registerBlock("anatase_ore", () -> new Block(AbstractBlock.Properties
|
||||||
|
.create(Material.ROCK)
|
||||||
|
.sound(SoundType.STONE)
|
||||||
|
.hardnessAndResistance(3.0f, 3.0f)
|
||||||
|
.harvestLevel(3)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
.setRequiresTool()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
// Block of x
|
||||||
|
public static final RegistryObject<Block> BAUXITE_BLOCK = //hal
|
||||||
|
registerBlock("bauxite_block", () -> new Block(AbstractBlock.Properties
|
||||||
|
.create(Material.ROCK)
|
||||||
|
.sound(SoundType.STONE)
|
||||||
|
.hardnessAndResistance(2.0f, 1.0f)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> RUTILE_CHUNK_BLOCK = //hal
|
||||||
|
registerBlock("rutile_chunk_block", () -> new Block(AbstractBlock.Properties
|
||||||
|
.create(Material.GLASS)
|
||||||
|
.sound(SoundType.METAL)
|
||||||
|
.hardnessAndResistance(2.0f, 1.0f)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
public static final RegistryObject<Block> ANATASE_BLOCK = //hal
|
||||||
|
registerBlock("anatase_block", () -> new Block(AbstractBlock.Properties
|
||||||
|
.create(Material.GLASS)
|
||||||
|
.sound(SoundType.METAL)
|
||||||
|
.hardnessAndResistance(2.0f, 1.0f)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
public static final RegistryObject<Block> RAW_COPPER_BLOCK = //hal
|
||||||
|
registerBlock("raw_copper_block", () -> new Block(AbstractBlock.Properties
|
||||||
|
.create(Material.IRON)
|
||||||
|
.sound(SoundType.METAL)
|
||||||
|
.hardnessAndResistance(2.0f, 1.0f)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
public static final RegistryObject<Block> COPPER_BLOCK = //hal
|
||||||
|
registerBlock("copper_block", () -> new Block(AbstractBlock.Properties
|
||||||
|
.create(Material.IRON)
|
||||||
|
.sound(SoundType.METAL)
|
||||||
|
.hardnessAndResistance(2.0f, 1.0f)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
public static final RegistryObject<Block> CHISLED_COPPER_BLOCK = //hal
|
||||||
|
registerBlock("chisled_copper_block", () -> new Block(AbstractBlock.Properties
|
||||||
|
.create(Material.IRON)
|
||||||
|
.sound(SoundType.METAL)
|
||||||
|
.hardnessAndResistance(2.0f, 1.0f)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
//Technology
|
||||||
|
public static final RegistryObject<Block> ARC_FURNACE = //hal & pal
|
||||||
|
registerBlock("arc_furnace", () -> new ArcFurnace(AbstractBlock.Properties
|
||||||
|
.create(Material.IRON)
|
||||||
|
.hardnessAndResistance(3.0f,3.0f)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
.sound(SoundType.METAL)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> DEBUG_PORTAL_BLOCK = //hal & pal
|
||||||
|
registerBlock("debug_portal_block", () -> new DebugPortalBlock(AbstractBlock.Properties
|
||||||
|
.create(Material.IRON)
|
||||||
|
.hardnessAndResistance(1.0f,1.0f)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
.sound(SoundType.METAL)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> STEEL_PIPE = //hal
|
||||||
|
registerBlock("steel_pipe", () -> new StraightSteelPipe(AbstractBlock.Properties
|
||||||
|
.create(Material.IRON)
|
||||||
|
.hardnessAndResistance(3.0f,3.0f)
|
||||||
|
.harvestTool(ToolType.PICKAXE)
|
||||||
|
.sound(SoundType.METAL)
|
||||||
|
.setRequiresTool()
|
||||||
|
.notSolid()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private static <T extends Block> RegistryObject<T> registerBlock(String name, Supplier<T> block){ //hal
|
||||||
|
RegistryObject<T> toReturn = ModBlocks.BLOCKS.register(name, block);
|
||||||
|
registerBlockItem(name, toReturn);
|
||||||
|
return toReturn;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T extends Block> void registerBlockItem(String name, RegistryObject<T> block) { //hal
|
||||||
|
ModItems.ITEMS.register(name, () -> new BlockItem(block.get(),
|
||||||
|
new Item.Properties().group(ItemGroups.SUPERNOVA_BLOCKS_TAB)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
package dev.halbear1.supernova.registry.blocks;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
import dev.halbear1.supernova.custom.fluid.FlammableFluid;
|
||||||
|
import dev.halbear1.supernova.custom.fluid.SupernovaFlowingFluid;
|
||||||
|
import dev.halbear1.supernova.custom.fluid.SupernovaFluidAttributes;
|
||||||
|
import dev.halbear1.supernova.registry.items.ModItems;
|
||||||
|
import net.minecraft.block.AbstractBlock;
|
||||||
|
import net.minecraft.block.FlowingFluidBlock;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraft.fluid.FlowingFluid;
|
||||||
|
import net.minecraft.fluid.Fluid;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import net.minecraft.util.SoundEvents;
|
||||||
|
import net.minecraftforge.eventbus.api.IEventBus;
|
||||||
|
import net.minecraftforge.fluids.FluidAttributes;
|
||||||
|
import net.minecraftforge.fluids.ForgeFlowingFluid;
|
||||||
|
import net.minecraftforge.fml.RegistryObject;
|
||||||
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
||||||
|
public class ModFluids {
|
||||||
|
public static final ResourceLocation WATER_STILL_RL = new ResourceLocation("block/water_still");
|
||||||
|
public static final ResourceLocation WATER_FLOW_RL = new ResourceLocation("block/water_flow");
|
||||||
|
public static final ResourceLocation WATER_OVERLAY_RL = new ResourceLocation("block/water_overlay");
|
||||||
|
public static final ResourceLocation CRUDE_OIL_STILL_RL = new ResourceLocation("supernova:block/crude_oil_still");
|
||||||
|
public static final ResourceLocation CRUDE_OIL_FLOW_RL = new ResourceLocation("supernova:block/crude_oil_flowing");
|
||||||
|
public static final ResourceLocation CRUDE_OIL_OVERLAY_RL = new ResourceLocation("supernova:block/crude_oil_overlay");
|
||||||
|
public static final ResourceLocation REFINED_OIL_STILL_RL = new ResourceLocation("supernova:block/refined_oil_still");
|
||||||
|
public static final ResourceLocation REFINED_OIL_FLOW_RL = new ResourceLocation("supernova:block/refined_oil_flowing");
|
||||||
|
public static final ResourceLocation REFINED_OIL_OVERLAY_RL = new ResourceLocation("supernova:block/refined_oil_overlay");
|
||||||
|
public static final ResourceLocation KEROSENE_STILL_RL = new ResourceLocation("supernova:block/kerosene_still");
|
||||||
|
public static final ResourceLocation KEROSENE_FLOW_RL = new ResourceLocation("supernova:block/kerosene_flowing");
|
||||||
|
|
||||||
|
public static final DeferredRegister<Fluid> FLUIDS = DeferredRegister.create(ForgeRegistries.FLUIDS, SuperNova.MOD_ID);
|
||||||
|
|
||||||
|
//salt water
|
||||||
|
public static final RegistryObject<FlowingFluid> SALT_WATER_FLUID = FLUIDS.register("salt_water_fluid",
|
||||||
|
() -> new ForgeFlowingFluid.Source(ModFluids.SALT_WATER_PROPERTIES));
|
||||||
|
public static final RegistryObject<FlowingFluid> SALT_WATER_FLOWING = FLUIDS.register("salt_water_flowing",
|
||||||
|
() -> new ForgeFlowingFluid.Flowing(ModFluids.SALT_WATER_PROPERTIES));
|
||||||
|
|
||||||
|
public static final ForgeFlowingFluid.Properties SALT_WATER_PROPERTIES = new ForgeFlowingFluid.Properties(
|
||||||
|
() -> SALT_WATER_FLUID.get(), () -> SALT_WATER_FLOWING.get(), FluidAttributes.builder(WATER_STILL_RL, WATER_FLOW_RL)
|
||||||
|
.density(15).viscosity(5).sound(SoundEvents.BLOCK_WATER_AMBIENT).overlay(WATER_OVERLAY_RL).color(0xff45ADF2)).slopeFindDistance(5).levelDecreasePerBlock(1).canMultiply()
|
||||||
|
.block(() -> ModFluids.SALT_WATER_BLOCK.get()).bucket(() -> ModItems.SALT_WATER_BUCKET.get());
|
||||||
|
|
||||||
|
public static final RegistryObject<FlowingFluidBlock> SALT_WATER_BLOCK = ModBlocks.BLOCKS.register("salt_water",
|
||||||
|
() -> new FlowingFluidBlock(() -> ModFluids.SALT_WATER_FLUID.get(), AbstractBlock.Properties.create(Material.WATER)
|
||||||
|
.doesNotBlockMovement().hardnessAndResistance(100f).noDrops()));
|
||||||
|
|
||||||
|
//Oil
|
||||||
|
public static final RegistryObject<SupernovaFlowingFluid> CRUDE_OIL_FLUID = FLUIDS.register("crude_oil_fluid",
|
||||||
|
() -> new SupernovaFlowingFluid.Source(ModFluids.CRUDE_OIL_PROPERTIES));
|
||||||
|
public static final RegistryObject<SupernovaFlowingFluid> CRUDE_OIL_FLOWING = FLUIDS.register("crude_oil_flowing",
|
||||||
|
() -> new SupernovaFlowingFluid.Flowing(ModFluids.CRUDE_OIL_PROPERTIES));
|
||||||
|
|
||||||
|
public static final SupernovaFlowingFluid.Properties CRUDE_OIL_PROPERTIES = new SupernovaFlowingFluid.Properties(
|
||||||
|
() -> CRUDE_OIL_FLUID.get(), () -> CRUDE_OIL_FLOWING.get(), FluidAttributes.builder(CRUDE_OIL_STILL_RL, CRUDE_OIL_FLOW_RL)
|
||||||
|
.density(30).viscosity(30).sound(SoundEvents.BLOCK_HONEY_BLOCK_SLIDE).overlay(CRUDE_OIL_OVERLAY_RL).color(0x00FFFFFF),
|
||||||
|
SupernovaFluidAttributes.Supernovabuilder(CRUDE_OIL_OVERLAY_RL).Flammable()).tickRate(7).slopeFindDistance(4).levelDecreasePerBlock(2)
|
||||||
|
.block(() -> ModFluids.CRUDE_OIL_BLOCK.get()).bucket(() -> ModItems.CRUDE_OIL_BUCKET.get());
|
||||||
|
|
||||||
|
public static final RegistryObject<FlammableFluid> CRUDE_OIL_BLOCK = ModBlocks.BLOCKS.register("crude_oil",
|
||||||
|
() -> new FlammableFluid(() -> ModFluids.CRUDE_OIL_FLUID.get(), AbstractBlock.Properties.create(Material.WATER).tickRandomly()
|
||||||
|
.doesNotBlockMovement().hardnessAndResistance(100f).noDrops()));
|
||||||
|
|
||||||
|
|
||||||
|
public static final RegistryObject<SupernovaFlowingFluid> REFINED_OIL_FLUID = FLUIDS.register("refined_oil_fluid",
|
||||||
|
() -> new SupernovaFlowingFluid.Source(ModFluids.REFINED_OIL_PROPERTIES));
|
||||||
|
public static final RegistryObject<SupernovaFlowingFluid> REFINED_OIL_FLOWING = FLUIDS.register("refined_oil_flowing",
|
||||||
|
() -> new SupernovaFlowingFluid.Flowing(ModFluids.REFINED_OIL_PROPERTIES));
|
||||||
|
|
||||||
|
public static final SupernovaFlowingFluid.Properties REFINED_OIL_PROPERTIES = new SupernovaFlowingFluid.Properties(
|
||||||
|
() -> REFINED_OIL_FLUID.get(), () -> REFINED_OIL_FLOWING.get(), FluidAttributes.builder(REFINED_OIL_STILL_RL, REFINED_OIL_FLOW_RL)
|
||||||
|
.density(30).viscosity(30).sound(SoundEvents.ITEM_BOTTLE_FILL).overlay(REFINED_OIL_OVERLAY_RL).color(0x00FFFFFF),
|
||||||
|
SupernovaFluidAttributes.Supernovabuilder(CRUDE_OIL_OVERLAY_RL).Flammable()).tickRate(20).slopeFindDistance(4).levelDecreasePerBlock(2)
|
||||||
|
.block(() -> ModFluids.REFINED_OIL_BLOCK.get()).bucket(() -> ModItems.REFINED_OIL_BUCKET.get());
|
||||||
|
|
||||||
|
public static final RegistryObject<FlammableFluid> REFINED_OIL_BLOCK = ModBlocks.BLOCKS.register("refined_oil",
|
||||||
|
() -> new FlammableFluid(() -> ModFluids.REFINED_OIL_FLUID.get(), AbstractBlock.Properties.create(Material.WATER).tickRandomly()
|
||||||
|
.doesNotBlockMovement().hardnessAndResistance(100f).noDrops()));
|
||||||
|
|
||||||
|
//Kerosene
|
||||||
|
public static final RegistryObject<SupernovaFlowingFluid> KEROSENE_FLUID = FLUIDS.register("kerosene_fluid",
|
||||||
|
() -> new SupernovaFlowingFluid.Source(ModFluids.KEROSENE_PROPERTIES));
|
||||||
|
public static final RegistryObject<SupernovaFlowingFluid> KEROSENE_FLOWING = FLUIDS.register("kerosene_flowing",
|
||||||
|
() -> new SupernovaFlowingFluid.Flowing(ModFluids.KEROSENE_PROPERTIES));
|
||||||
|
|
||||||
|
public static final SupernovaFlowingFluid.Properties KEROSENE_PROPERTIES = new SupernovaFlowingFluid.Properties(
|
||||||
|
() -> KEROSENE_FLUID.get(), () -> KEROSENE_FLOWING.get(), FluidAttributes.builder(KEROSENE_STILL_RL, KEROSENE_FLOW_RL)
|
||||||
|
.density(30).viscosity(10).sound(SoundEvents.ITEM_BOTTLE_FILL).overlay(REFINED_OIL_OVERLAY_RL).color(0xeeFFFFFF),
|
||||||
|
SupernovaFluidAttributes.Supernovabuilder(CRUDE_OIL_OVERLAY_RL).Flammable()).tickRate(6).slopeFindDistance(5).levelDecreasePerBlock(1)
|
||||||
|
.block(() -> ModFluids.KEROSENE_BLOCK.get()).bucket(() -> ModItems.KEROSENE_BUCKET.get());
|
||||||
|
|
||||||
|
public static final RegistryObject<FlammableFluid> KEROSENE_BLOCK = ModBlocks.BLOCKS.register("kerosene",
|
||||||
|
() -> new FlammableFluid(() -> ModFluids.KEROSENE_FLUID.get(), AbstractBlock.Properties.create(Material.WATER).tickRandomly()
|
||||||
|
.doesNotBlockMovement().hardnessAndResistance(100f).noDrops()));
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package dev.halbear1.supernova.registry.items;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.registry.blocks.ModBlocks;
|
||||||
|
import net.minecraft.item.ItemGroup;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
|
public class ItemGroups {
|
||||||
|
|
||||||
|
public static final ItemGroup SUPERNOVA_BLOCKS_TAB = new ItemGroup("supernovaBlocksModTab") {
|
||||||
|
@Override
|
||||||
|
public ItemStack createIcon() {
|
||||||
|
return new ItemStack(ModBlocks.ARC_FURNACE.get());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
public static final ItemGroup SUPERNOVA_ITEMS_TAB = new ItemGroup("supernovaItemsModTab") {
|
||||||
|
@Override
|
||||||
|
public ItemStack createIcon() {
|
||||||
|
return new ItemStack(ModItems.BAUXITE_CHUNK.get());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,139 @@
|
|||||||
|
package dev.halbear1.supernova.registry.items;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
import dev.halbear1.supernova.registry.blocks.ModFluids;
|
||||||
|
import dev.halbear1.supernova.registry.util.ModSoundEvents;
|
||||||
|
import net.minecraft.client.gui.screen.Screen;
|
||||||
|
import net.minecraft.client.util.ITooltipFlag;
|
||||||
|
import net.minecraft.item.*;
|
||||||
|
import net.minecraft.util.text.ITextComponent;
|
||||||
|
import net.minecraft.util.text.TranslationTextComponent;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraftforge.common.ToolType;
|
||||||
|
import net.minecraftforge.fml.RegistryObject;
|
||||||
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class ModItems {
|
||||||
|
|
||||||
|
public static final DeferredRegister<Item> ITEMS = // hal
|
||||||
|
DeferredRegister.create(ForgeRegistries.ITEMS, SuperNova.MOD_ID);
|
||||||
|
|
||||||
|
//the items will appear in inventory as in order of declaration here, please keep all item types grouped together
|
||||||
|
//such as group ores together, group crystal+powdered forms together, keep it relatively organised in both the registry AND the en_us.json - hal
|
||||||
|
|
||||||
|
//REMEMBER TO PUT REGISTERED ITEMS AND BLOCKS IN THE EN_US.JSON, an example would be ""block.supernova.bauxite_ore": "Bauxite Ore","
|
||||||
|
//ores
|
||||||
|
public static final RegistryObject<Item> BAUXITE_CHUNK = ITEMS.register("bauxite_chunk", // hal
|
||||||
|
() -> new Item(new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB)){
|
||||||
|
@Override
|
||||||
|
public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) {
|
||||||
|
if (Screen.hasShiftDown()){
|
||||||
|
tooltip.add(new TranslationTextComponent("tooltip.supernova.bauxite_tooltip"));
|
||||||
|
} else{
|
||||||
|
tooltip.add(new TranslationTextComponent("tooltip.supernova.tooltip_prompt"));
|
||||||
|
}
|
||||||
|
}});
|
||||||
|
|
||||||
|
public static final RegistryObject<Item> RUTILE_CHUNK = ITEMS.register("rutile_chunk", // pal
|
||||||
|
() -> new Item(new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB)){
|
||||||
|
@Override
|
||||||
|
public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) {
|
||||||
|
if (Screen.hasShiftDown()){
|
||||||
|
tooltip.add(new TranslationTextComponent("tooltip.supernova.rutile_tooltip"));
|
||||||
|
} else{
|
||||||
|
tooltip.add(new TranslationTextComponent("tooltip.supernova.tooltip_prompt"));
|
||||||
|
}
|
||||||
|
}});
|
||||||
|
|
||||||
|
public static final RegistryObject<Item> COPPER_CHUNK = ITEMS.register("copper_chunk", // hal
|
||||||
|
() -> new Item(new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB)){
|
||||||
|
@Override
|
||||||
|
public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) {
|
||||||
|
if (Screen.hasShiftDown()){
|
||||||
|
tooltip.add(new TranslationTextComponent("tooltip.supernova.copperchunk_tooltip"));
|
||||||
|
} else{
|
||||||
|
tooltip.add(new TranslationTextComponent("tooltip.supernova.tooltip_prompt"));
|
||||||
|
}
|
||||||
|
}});
|
||||||
|
|
||||||
|
public static final RegistryObject<Item> ANATASE_CHUNK = ITEMS.register("anatase_chunk", // hal
|
||||||
|
() -> new Item(new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB)){
|
||||||
|
@Override
|
||||||
|
public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) {
|
||||||
|
if (Screen.hasShiftDown()){
|
||||||
|
tooltip.add(new TranslationTextComponent("tooltip.supernova.anatasechunk_tooltip"));
|
||||||
|
} else{
|
||||||
|
tooltip.add(new TranslationTextComponent("tooltip.supernova.tooltip_prompt"));
|
||||||
|
}
|
||||||
|
}});
|
||||||
|
|
||||||
|
//crystals
|
||||||
|
public static final RegistryObject<Item> SILICA_CRYSTAL = ITEMS.register("silica_crystal", // hal
|
||||||
|
() -> new Item(new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB)){
|
||||||
|
@Override
|
||||||
|
public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) {
|
||||||
|
if (Screen.hasShiftDown()){
|
||||||
|
tooltip.add(new TranslationTextComponent("tooltip.supernova.silicachunk_tooltip"));
|
||||||
|
} else{
|
||||||
|
tooltip.add(new TranslationTextComponent("tooltip.supernova.tooltip_prompt"));
|
||||||
|
}
|
||||||
|
}});
|
||||||
|
|
||||||
|
public static final RegistryObject<Item> SILICA_POWDER = ITEMS.register("silica_powder", // hal
|
||||||
|
() -> new Item(new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB)){
|
||||||
|
@Override
|
||||||
|
public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) {
|
||||||
|
if (Screen.hasShiftDown()){
|
||||||
|
tooltip.add(new TranslationTextComponent("tooltip.supernova.silicapowder_tooltip"));
|
||||||
|
} else{
|
||||||
|
tooltip.add(new TranslationTextComponent("tooltip.supernova.tooltip_prompt"));
|
||||||
|
}
|
||||||
|
}});
|
||||||
|
|
||||||
|
//ingots & alloys
|
||||||
|
public static final RegistryObject<Item> COPPER_INGOT = ITEMS.register("copper_ingot", // hal
|
||||||
|
() -> new Item(new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB)));
|
||||||
|
public static final RegistryObject<Item> ALUMINIUM_INGOT = ITEMS.register("aluminium_ingot", // hal
|
||||||
|
() -> new Item(new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB)));
|
||||||
|
public static final RegistryObject<Item> TITANIUM_INGOT = ITEMS.register("titanium_ingot", // hal
|
||||||
|
() -> new Item(new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB)));
|
||||||
|
public static final RegistryObject<Item> STEEL_INGOT = ITEMS.register("steel_ingot", // hal
|
||||||
|
() -> new Item(new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB)));
|
||||||
|
|
||||||
|
//whatever carborundum is
|
||||||
|
public static final RegistryObject<Item> CARBORUNDUM = ITEMS.register("carborundum", // hal
|
||||||
|
() -> new Item(new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB)));
|
||||||
|
|
||||||
|
//buckets
|
||||||
|
public static final RegistryObject<Item> SALT_WATER_BUCKET = ITEMS.register("salt_water_bucket",()-> new BucketItem(()-> ModFluids.SALT_WATER_FLUID.get(),
|
||||||
|
new Item.Properties().maxStackSize(1).group(ItemGroups.SUPERNOVA_ITEMS_TAB)));
|
||||||
|
public static final RegistryObject<Item> CRUDE_OIL_BUCKET = ITEMS.register("crude_oil_bucket",()-> new BucketItem(()-> ModFluids.CRUDE_OIL_FLUID.get(),
|
||||||
|
new Item.Properties().maxStackSize(1).group(ItemGroups.SUPERNOVA_ITEMS_TAB)));
|
||||||
|
public static final RegistryObject<Item> REFINED_OIL_BUCKET = ITEMS.register("refined_oil_bucket",()-> new BucketItem(()-> ModFluids.REFINED_OIL_FLUID.get(),
|
||||||
|
new Item.Properties().maxStackSize(1).group(ItemGroups.SUPERNOVA_ITEMS_TAB)));
|
||||||
|
public static final RegistryObject<Item> KEROSENE_BUCKET = ITEMS.register("kerosene_bucket",()-> new BucketItem(()-> ModFluids.KEROSENE_FLUID.get(),
|
||||||
|
new Item.Properties().maxStackSize(1).group(ItemGroups.SUPERNOVA_ITEMS_TAB)));
|
||||||
|
|
||||||
|
//music disks
|
||||||
|
public static final RegistryObject<Item> ASTRAL_NIGHTMARE = ITEMS.register("astral_nightmare_md",
|
||||||
|
()-> new MusicDiscItem(1, () -> ModSoundEvents.ASTRAL_NIGHTMARE.get(),
|
||||||
|
new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB).maxStackSize(1)));
|
||||||
|
public static final RegistryObject<Item> NEW_WORLD_MD = ITEMS.register("new_world_md",
|
||||||
|
()-> new MusicDiscItem(1, () -> ModSoundEvents.NEW_WORLD.get(),
|
||||||
|
new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB).maxStackSize(1)));
|
||||||
|
public static final RegistryObject<Item> NEBULA_MD = ITEMS.register("nebula_md",
|
||||||
|
()-> new MusicDiscItem(1, () -> ModSoundEvents.NEBULA.get(),
|
||||||
|
new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB).maxStackSize(1)));
|
||||||
|
public static final RegistryObject<Item> STARDUST_MOUNTAIN_MD = ITEMS.register("stardust_mountain_md",
|
||||||
|
()-> new MusicDiscItem(1, () -> ModSoundEvents.STARDUST_MOUNTAIN.get(),
|
||||||
|
new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB).maxStackSize(1)));
|
||||||
|
public static final RegistryObject<Item> FISSURE_IN_SPACE_MD = ITEMS.register("fissure_in_space_md",
|
||||||
|
()-> new MusicDiscItem(1, () -> ModSoundEvents.FISSURE_IN_SPACE.get(),
|
||||||
|
new Item.Properties().group(ItemGroups.SUPERNOVA_ITEMS_TAB).maxStackSize(1)));
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,95 @@
|
|||||||
|
package dev.halbear1.supernova.registry.util;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
//import dev.halbear1.supernova.custom.particle.StarSparkle;
|
||||||
|
import dev.halbear1.supernova.registry.ModParticles;
|
||||||
|
import dev.halbear1.supernova.registry.blocks.ModBlocks;
|
||||||
|
import dev.halbear1.supernova.registry.blocks.ModFluids;
|
||||||
|
import dev.halbear1.supernova.registry.worldgen.ModBiomes;
|
||||||
|
import dev.halbear1.supernova.registry.worldgen.ModDimensions;
|
||||||
|
import net.minecraft.client.Minecraft;
|
||||||
|
import net.minecraft.client.particle.IParticleFactory;
|
||||||
|
import net.minecraft.client.renderer.RenderType;
|
||||||
|
import net.minecraft.client.renderer.RenderTypeLookup;
|
||||||
|
import net.minecraft.client.world.DimensionRenderInfo;
|
||||||
|
import net.minecraft.entity.Entity;
|
||||||
|
import net.minecraft.entity.LivingEntity;
|
||||||
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
import net.minecraft.fluid.FluidState;
|
||||||
|
import net.minecraft.server.MinecraftServer;
|
||||||
|
import net.minecraft.util.RegistryKey;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import net.minecraft.util.Util;
|
||||||
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
import net.minecraft.util.registry.Registry;
|
||||||
|
import net.minecraft.util.text.ChatType;
|
||||||
|
import net.minecraft.util.text.StringTextComponent;
|
||||||
|
import net.minecraft.world.Dimension;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraftforge.api.distmarker.Dist;
|
||||||
|
import net.minecraftforge.client.event.EntityViewRenderEvent;
|
||||||
|
import net.minecraftforge.client.event.ParticleFactoryRegisterEvent;
|
||||||
|
import net.minecraftforge.event.TickEvent;
|
||||||
|
import net.minecraftforge.event.entity.living.LivingEntityUseItemEvent;
|
||||||
|
import net.minecraftforge.event.entity.player.PlayerEvent;
|
||||||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.RegistryObject;
|
||||||
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraftforge.fml.server.ServerLifecycleHooks;
|
||||||
|
|
||||||
|
import java.util.AbstractMap;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
|
@Mod.EventBusSubscriber(modid = SuperNova.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
|
||||||
|
public class ClientEventHandler {
|
||||||
|
|
||||||
|
@SafeVarargs
|
||||||
|
public static void SetCollectionRenderType(RenderType type, RegistryObject<Block>... blocks_list) { //hal
|
||||||
|
for (RegistryObject<Block> blockRegistryObject : blocks_list) {
|
||||||
|
RenderTypeLookup.setRenderLayer(blockRegistryObject.get(), type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@SubscribeEvent
|
||||||
|
public static void init(final FMLClientSetupEvent event) { // block render types, examples for paladin and chef to see
|
||||||
|
// pal: drying up your code
|
||||||
|
SetCollectionRenderType(RenderType.getSolid(), // Cutout: Texture pixels with a transparency element are discarded, fastest method, prevents re-ordering at render.
|
||||||
|
ModBlocks.ARC_FURNACE
|
||||||
|
//blocks here
|
||||||
|
);
|
||||||
|
SetCollectionRenderType(RenderType.getCutout(), // Cutout: Texture pixels with a transparency element are discarded, fastest method, prevents re-ordering at render.
|
||||||
|
ModBlocks.BAUXITE_ORE, //hal
|
||||||
|
ModBlocks.RUTILE_ORE, // pal: rutile, generator
|
||||||
|
ModBlocks.COPPER_ORE,
|
||||||
|
ModBlocks.ANATASE_ORE,
|
||||||
|
ModBlocks.STEEL_PIPE
|
||||||
|
//blocks here
|
||||||
|
);
|
||||||
|
RenderTypeLookup.setRenderLayer(ModFluids.SALT_WATER_FLUID.get(), RenderType.getTranslucent());
|
||||||
|
RenderTypeLookup.setRenderLayer(ModFluids.SALT_WATER_FLOWING.get(), RenderType.getTranslucent());
|
||||||
|
RenderTypeLookup.setRenderLayer(ModFluids.SALT_WATER_BLOCK.get(), RenderType.getTranslucent());
|
||||||
|
RenderTypeLookup.setRenderLayer(ModFluids.KEROSENE_FLUID.get(), RenderType.getTranslucent());
|
||||||
|
RenderTypeLookup.setRenderLayer(ModFluids.KEROSENE_FLOWING.get(), RenderType.getTranslucent());
|
||||||
|
RenderTypeLookup.setRenderLayer(ModFluids.KEROSENE_BLOCK.get(), RenderType.getTranslucent());
|
||||||
|
|
||||||
|
/*SetCollectionRenderType(RenderType.getCutoutMipped(), // Cutout Mipped: Cutout but with mipmapping. Textures from far away are simplified for performance.
|
||||||
|
//blocks here
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
SetCollectionRenderType(RenderType.getTranslucent(), // Translucent: Texture pixels with a transparency element are mixed, slowest method.
|
||||||
|
//blocks here
|
||||||
|
);*/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*@SubscribeEvent
|
||||||
|
public static void registerFactory(final ParticleFactoryRegisterEvent event){
|
||||||
|
//register particles here, an example would be:
|
||||||
|
//Minecraft.GetInstance().particleEngine.register(ModParticleTypes.ExampleParticle.get(), ExampleParticle.Factory::new);
|
||||||
|
Minecraft.getInstance().particles.registerFactory(ModParticles.STAR_SPARKLE.get(), StarSparkle.Factory::new);
|
||||||
|
}*/
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package dev.halbear1.supernova.registry.util;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import net.minecraft.util.SoundEvent;
|
||||||
|
import net.minecraftforge.fml.RegistryObject;
|
||||||
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
||||||
|
public class ModSoundEvents {
|
||||||
|
public static final DeferredRegister<SoundEvent> SOUND_EVENTS =
|
||||||
|
DeferredRegister.create(ForgeRegistries.SOUND_EVENTS, SuperNova.MOD_ID);
|
||||||
|
//Game Sounds
|
||||||
|
|
||||||
|
//Entity Sounds
|
||||||
|
|
||||||
|
//Music Disks
|
||||||
|
public static final RegistryObject<SoundEvent> NEW_WORLD = registerSoundEvent("new_world");
|
||||||
|
public static final RegistryObject<SoundEvent> NEBULA = registerSoundEvent("nebula");
|
||||||
|
public static final RegistryObject<SoundEvent> STARDUST_MOUNTAIN = registerSoundEvent("stardust_mountain");
|
||||||
|
public static final RegistryObject<SoundEvent> ASTRAL_NIGHTMARE = registerSoundEvent("astral_nightmare");
|
||||||
|
public static final RegistryObject<SoundEvent> FISSURE_IN_SPACE = registerSoundEvent("fissure_in_space");
|
||||||
|
|
||||||
|
public static RegistryObject<SoundEvent> registerSoundEvent(String name){
|
||||||
|
return SOUND_EVENTS.register(name, () -> new SoundEvent(new ResourceLocation(SuperNova.MOD_ID, name)));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
package dev.halbear1.supernova.registry.util;
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.registry.blocks.ModFluids;
|
||||||
|
import net.minecraft.client.Minecraft;
|
||||||
|
import net.minecraft.entity.Entity;
|
||||||
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
import net.minecraft.fluid.FluidState;
|
||||||
|
import net.minecraft.util.RegistryKey;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
import net.minecraft.util.registry.Registry;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraft.world.biome.Biome;
|
||||||
|
import net.minecraftforge.client.event.EntityViewRenderEvent;
|
||||||
|
import net.minecraftforge.event.entity.EntityEvent;
|
||||||
|
import net.minecraftforge.event.entity.living.LivingSpawnEvent;
|
||||||
|
import net.minecraftforge.event.entity.player.PlayerEvent;
|
||||||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
@Mod.EventBusSubscriber(modid = SuperNova.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE)
|
||||||
|
|
||||||
|
public class ServerEventHandler {
|
||||||
|
|
||||||
|
//SPACE STUFF
|
||||||
|
//if you can't tell what these do by the function names... bro.. cmon
|
||||||
|
@SubscribeEvent
|
||||||
|
public static void FogDistance(EntityViewRenderEvent.FogDensity FogDensity) {
|
||||||
|
PlayerEntity player = Minecraft.getInstance().player;
|
||||||
|
double eyeHeight = player.getPosYEye() - 1 / 9d;
|
||||||
|
FluidState fluid = player.world.getFluidState(new BlockPos(player.getPosX(), eyeHeight, player.getPosZ()));
|
||||||
|
if (fluid.getFluid() == ModFluids.CRUDE_OIL_FLUID.get() || fluid.getFluid() == ModFluids.CRUDE_OIL_FLOWING.get()) {
|
||||||
|
FogDensity.setDensity(1000f);
|
||||||
|
}
|
||||||
|
if (fluid.getFluid() == ModFluids.REFINED_OIL_FLUID.get() || fluid.getFluid() == ModFluids.REFINED_OIL_FLOWING.get()) {
|
||||||
|
FogDensity.setDensity(1000f);
|
||||||
|
}
|
||||||
|
if (fluid.getFluid() == ModFluids.KEROSENE_FLUID.get() || fluid.getFluid() == ModFluids.KEROSENE_FLOWING.get()) {
|
||||||
|
FogDensity.setDensity(10f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SubscribeEvent
|
||||||
|
public static void OilFog(EntityViewRenderEvent.FogColors FogColor) {
|
||||||
|
PlayerEntity player = Minecraft.getInstance().player;
|
||||||
|
double eyeHeight = player.getPosYEye() - 1 / 9d;
|
||||||
|
FluidState fluid = player.world.getFluidState(new BlockPos(player.getPosX(), eyeHeight, player.getPosZ()));
|
||||||
|
if (fluid.getFluid() == ModFluids.CRUDE_OIL_FLUID.get() || fluid.getFluid() == ModFluids.CRUDE_OIL_FLOWING.get()) {
|
||||||
|
FogColor.setBlue(0);
|
||||||
|
FogColor.setGreen(0);
|
||||||
|
FogColor.setRed(0);
|
||||||
|
}
|
||||||
|
if (fluid.getFluid() == ModFluids.REFINED_OIL_FLUID.get() || fluid.getFluid() == ModFluids.REFINED_OIL_FLOWING.get()) {
|
||||||
|
FogColor.setBlue(35);
|
||||||
|
FogColor.setGreen(0);
|
||||||
|
FogColor.setRed(5);
|
||||||
|
}
|
||||||
|
if (fluid.getFluid() == ModFluids.KEROSENE_FLUID.get() || fluid.getFluid() == ModFluids.KEROSENE_FLOWING.get()) {
|
||||||
|
FogColor.setBlue(230);
|
||||||
|
FogColor.setGreen(190);
|
||||||
|
FogColor.setRed(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SubscribeEvent
|
||||||
|
public static void PlayerGravityCheck(PlayerEvent.PlayerChangedDimensionEvent event) {
|
||||||
|
Entity player = event.getPlayer();
|
||||||
|
if (event.getFrom() == RegistryKey.getOrCreateKey(Registry.WORLD_KEY, new ResourceLocation("supernova:space"))) {
|
||||||
|
player.setNoGravity(false);
|
||||||
|
}
|
||||||
|
if (event.getTo() == RegistryKey.getOrCreateKey(Registry.WORLD_KEY, new ResourceLocation("supernova:space"))) {
|
||||||
|
player.setNoGravity(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SubscribeEvent
|
||||||
|
public static void ChunkGravityCheck(EntityEvent.EnteringChunk chunkEvent){
|
||||||
|
Entity entity = chunkEvent.getEntity();
|
||||||
|
World world = entity.world;
|
||||||
|
Biome entityBiome = world.getBiome(entity.getPosition());
|
||||||
|
if (Objects.equals(entityBiome.getRegistryName(), new ResourceLocation("supernova:space")) && !entity.hasNoGravity()){
|
||||||
|
entity.setNoGravity(true);
|
||||||
|
} else if (!Objects.equals(entityBiome.getRegistryName(), new ResourceLocation("supernova:space")) && entity.hasNoGravity()) {
|
||||||
|
entity.setNoGravity(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SubscribeEvent
|
||||||
|
public static void EntityGravityCheck(LivingSpawnEvent SpawnEvent){
|
||||||
|
Entity entity = SpawnEvent.getEntity();
|
||||||
|
World world = entity.world;
|
||||||
|
Biome entityBiome = world.getBiome(entity.getPosition());
|
||||||
|
if (Objects.equals(entityBiome.getRegistryName(), new ResourceLocation("supernova:space")) && !entity.hasNoGravity()){
|
||||||
|
entity.setNoGravity(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
package dev.halbear1.supernova.registry.worldgen;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
import net.minecraft.util.RegistryKey;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import net.minecraft.util.registry.Registry;
|
||||||
|
import net.minecraft.world.biome.Biome;
|
||||||
|
import net.minecraft.world.biome.BiomeMaker;
|
||||||
|
import net.minecraftforge.common.BiomeManager;
|
||||||
|
import net.minecraftforge.fml.RegistryObject;
|
||||||
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
||||||
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
|
public class ModBiomes {
|
||||||
|
public static final DeferredRegister<Biome> BIOMES = DeferredRegister.create(ForgeRegistries.BIOMES, SuperNova.MOD_ID);
|
||||||
|
|
||||||
|
static {
|
||||||
|
//space
|
||||||
|
createBiome("space", BiomeMaker::makeVoidBiome);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final RegistryKey<Biome> SPACE = registerBiome("space");
|
||||||
|
|
||||||
|
public static RegistryKey<Biome> registerBiome(String name) {
|
||||||
|
return RegistryKey.getOrCreateKey(Registry.BIOME_KEY, new ResourceLocation(SuperNova.MOD_ID, name));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static RegistryObject<Biome> createBiome(String name, Supplier<Biome> biome) {
|
||||||
|
return BIOMES.register(name, biome);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void registerBiomes() {
|
||||||
|
BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(SPACE, 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package dev.halbear1.supernova.registry.worldgen;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
import dev.halbear1.supernova.registry.blocks.ModBlocks;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import net.minecraft.util.registry.Registry;
|
||||||
|
import net.minecraft.util.registry.WorldGenRegistries;
|
||||||
|
import net.minecraft.world.gen.feature.*;
|
||||||
|
|
||||||
|
public class ModConfiguredFeatures { //hal & pal
|
||||||
|
//pal: 'bauxite' not 'baxuite'
|
||||||
|
public static final ConfiguredFeature<?,?> BAUXITE_ORE_GEN = Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, ModBlocks.BAUXITE_ORE.get().getDefaultState(), 8)).range(40).square().count(12);
|
||||||
|
public static final ConfiguredFeature<?,?> RUTILE_ORE_GEN = Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, ModBlocks.RUTILE_ORE.get().getDefaultState(), 6)).range(25).square().count(7);
|
||||||
|
public static final ConfiguredFeature<?,?> COPPER_ORE_GEN = Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, ModBlocks.COPPER_ORE.get().getDefaultState(), 12)).range(225).square().count(24);
|
||||||
|
public static final ConfiguredFeature<?,?> ANATASE_ORE_GEN = Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, ModBlocks.ANATASE_ORE.get().getDefaultState(), 5)).range(25).square().count(5);
|
||||||
|
|
||||||
|
private static <FC extends IFeatureConfig> ConfiguredFeature<FC,?> register(String name, ConfiguredFeature<FC,?> feature){ //hal
|
||||||
|
return Registry.register(WorldGenRegistries.CONFIGURED_FEATURE, new ResourceLocation(SuperNova.MOD_ID, name), feature);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void registerConfiguredFeatures() { //hal & pal
|
||||||
|
register("bauxite_ore_gen",BAUXITE_ORE_GEN);
|
||||||
|
register("rutile_ore_gen",RUTILE_ORE_GEN);
|
||||||
|
register("copper_ore_gen",COPPER_ORE_GEN);
|
||||||
|
register("anatase_ore_gen",ANATASE_ORE_GEN);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
package dev.halbear1.supernova.registry.worldgen;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
import net.minecraft.server.MinecraftServer;
|
||||||
|
import net.minecraft.util.RegistryKey;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import net.minecraft.util.Util;
|
||||||
|
import net.minecraft.util.registry.Registry;
|
||||||
|
import net.minecraft.util.text.ChatType;
|
||||||
|
import net.minecraft.util.text.StringTextComponent;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraftforge.event.entity.player.PlayerEvent;
|
||||||
|
import net.minecraftforge.eventbus.api.IEventBus;
|
||||||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.server.ServerLifecycleHooks;
|
||||||
|
|
||||||
|
public class ModDimensions {
|
||||||
|
public static RegistryKey<World> SPACE = RegistryKey.getOrCreateKey(Registry.WORLD_KEY, new ResourceLocation(SuperNova.MOD_ID, "space"){
|
||||||
|
@SubscribeEvent
|
||||||
|
public void onPlayerChangedDimensionEvent(PlayerEvent.PlayerChangedDimensionEvent dimension) {
|
||||||
|
PlayerEntity player = dimension.getPlayer();
|
||||||
|
MinecraftServer server = ServerLifecycleHooks.getCurrentServer();
|
||||||
|
if (server != null){
|
||||||
|
server.getPlayerList().func_232641_a_(new StringTextComponent("dimension change registry"), ChatType.SYSTEM, Util.DUMMY_UUID);
|
||||||
|
}
|
||||||
|
if (dimension.getFrom() == ModDimensions.SPACE) {
|
||||||
|
player.setNoGravity(false);
|
||||||
|
}
|
||||||
|
if (dimension.getTo() == ModDimensions.SPACE) {
|
||||||
|
player.setNoGravity(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package dev.halbear1.supernova.registry.worldgen;
|
||||||
|
|
||||||
|
public class ModFeatures {
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package dev.halbear1.supernova.registry.worldgen;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
import net.minecraft.world.gen.surfacebuilders.SurfaceBuilder;
|
||||||
|
import net.minecraftforge.registries.DeferredRegister;
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
||||||
|
public class ModSurfaceBuilders {
|
||||||
|
public static final DeferredRegister<SurfaceBuilder<?>> SURFACE_BUILDERS = DeferredRegister.create(ForgeRegistries.SURFACE_BUILDERS, SuperNova.MOD_ID);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
package dev.halbear1.supernova.setup;
|
||||||
|
import dev.halbear1.supernova.SuperNova;
|
||||||
|
import dev.halbear1.supernova.registry.worldgen.ModConfiguredFeatures;
|
||||||
|
import dev.halbear1.supernova.registry.worldgen.ModDimensions;
|
||||||
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
import net.minecraft.world.gen.GenerationStage;
|
||||||
|
import net.minecraftforge.event.entity.player.PlayerEvent;
|
||||||
|
import net.minecraftforge.event.world.BiomeLoadingEvent;
|
||||||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
|
||||||
|
@Mod.EventBusSubscriber(modid = SuperNova.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE)
|
||||||
|
public class CommonEventHandler {
|
||||||
|
|
||||||
|
@SubscribeEvent //hal & pal
|
||||||
|
public static void biomeModification(BiomeLoadingEvent event) { // this will add features such as ore to the overworld
|
||||||
|
event.getGeneration().getFeatures(GenerationStage.Decoration.UNDERGROUND_ORES).add(() -> ModConfiguredFeatures.BAUXITE_ORE_GEN);
|
||||||
|
event.getGeneration().getFeatures(GenerationStage.Decoration.UNDERGROUND_ORES).add(() -> ModConfiguredFeatures.RUTILE_ORE_GEN);
|
||||||
|
event.getGeneration().getFeatures(GenerationStage.Decoration.UNDERGROUND_ORES).add(() -> ModConfiguredFeatures.COPPER_ORE_GEN);
|
||||||
|
event.getGeneration().getFeatures(GenerationStage.Decoration.UNDERGROUND_ORES).add(() -> ModConfiguredFeatures.ANATASE_ORE_GEN);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
package dev.halbear1.supernova.world.dimension;
|
||||||
|
|
||||||
|
import dev.halbear1.supernova.custom.block.ArcFurnace;
|
||||||
|
import dev.halbear1.supernova.registry.blocks.ModBlocks;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraft.entity.Entity;
|
||||||
|
import net.minecraft.fluid.Fluids;
|
||||||
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
import net.minecraft.world.server.ServerWorld;
|
||||||
|
import net.minecraftforge.common.util.ITeleporter;
|
||||||
|
|
||||||
|
import java.util.function.Function;
|
||||||
|
|
||||||
|
public class DebugTeleporter implements ITeleporter {
|
||||||
|
public static BlockPos CurPos = BlockPos.ZERO;
|
||||||
|
public static boolean insideDimension = false;
|
||||||
|
|
||||||
|
public DebugTeleporter(BlockPos position, boolean insideDimensionBool){
|
||||||
|
CurPos = position;
|
||||||
|
insideDimension = insideDimensionBool;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Entity placeEntity(Entity entity, ServerWorld currentWorld, ServerWorld DestinationWorld, float yaw, Function<Boolean, Entity> repositionEntity){
|
||||||
|
entity = repositionEntity.apply(false);
|
||||||
|
double y = 61;
|
||||||
|
if (!insideDimension){
|
||||||
|
y = CurPos.getY();
|
||||||
|
}
|
||||||
|
BlockPos DestinationPos = new BlockPos(CurPos.getX(), y, CurPos.getZ());
|
||||||
|
int tries = 0;
|
||||||
|
while ((DestinationWorld.getBlockState(DestinationPos).getMaterial()!= Material.AIR) && !DestinationWorld.getBlockState(DestinationPos).isReplaceable(Fluids.WATER) && DestinationWorld.getBlockState(DestinationPos.up()).getMaterial() != Material.AIR && !DestinationWorld.getBlockState(DestinationPos.up()).isReplaceable(Fluids.WATER) && tries < 25) {
|
||||||
|
DestinationPos = DestinationPos.up(2);
|
||||||
|
tries++;
|
||||||
|
}
|
||||||
|
entity.setPositionAndUpdate(DestinationPos.getX(),DestinationPos.getY(),DestinationPos.getZ());
|
||||||
|
|
||||||
|
if (insideDimension){
|
||||||
|
boolean doSetBlock = true;
|
||||||
|
for (BlockPos positionCheck : BlockPos.getAllInBoxMutable(DestinationPos.down(10).west(10), DestinationPos.up(10).east(10))){
|
||||||
|
if (DestinationWorld.getBlockState(positionCheck).getBlock()instanceof ArcFurnace){
|
||||||
|
doSetBlock = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (doSetBlock) {
|
||||||
|
DestinationWorld.setBlockState(DestinationPos.down(), ModBlocks.DEBUG_PORTAL_BLOCK.get().getDefaultState());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package dev.halbear1.supernova.world.gen.ores;
|
||||||
|
|
||||||
|
public class OreInCave {
|
||||||
|
}
|
||||||
62
src/main/resources/META-INF/mods.toml
Normal file
62
src/main/resources/META-INF/mods.toml
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
# This is an example mods.toml file. It contains the data relating to the loading mods.
|
||||||
|
# There are several mandatory fields (#mandatory), and many more that are optional (#optional).
|
||||||
|
# The overall format is standard TOML format, v0.5.0.
|
||||||
|
# Note that there are a couple of TOML lists in this file.
|
||||||
|
# Find more information on toml format here: https://github.com/toml-lang/toml
|
||||||
|
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
|
||||||
|
modLoader="javafml" #mandatory
|
||||||
|
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
|
||||||
|
loaderVersion="[36,)" #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.
|
||||||
|
# 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"
|
||||||
|
# A URL to refer people to when problems occur with this mod
|
||||||
|
#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional
|
||||||
|
# A list of mods - how many allowed here is determined by the individual mod loader
|
||||||
|
[[mods]] #mandatory
|
||||||
|
# The modid of the mod
|
||||||
|
modId="supernova" #mandatory
|
||||||
|
# The version number of the mod - there's a few well known ${} variables useable here or just hardcode it
|
||||||
|
# ${file.jarVersion} will substitute the value of the Implementation-Version as read from the mod's JAR file metadata
|
||||||
|
# see the associated build.gradle script for how to populate this completely automatically during a build
|
||||||
|
version="${file.jarVersion}" #mandatory
|
||||||
|
# A display name for the mod
|
||||||
|
displayName="SuperNova" #mandatory
|
||||||
|
# A URL to query for updates for this mod. See the JSON update specification https://mcforge.readthedocs.io/en/latest/gettingstarted/autoupdate/
|
||||||
|
#updateJSONURL="https://change.me.example.invalid/updates.json" #optional
|
||||||
|
# A URL for the "homepage" for this mod, displayed in the mod UI
|
||||||
|
#displayURL="https://change.me.to.your.mods.homepage.example.invalid/" #optional
|
||||||
|
# A file name (in the root of the mod JAR) containing a logo for display
|
||||||
|
logoFile="SuperNova.png" #optional
|
||||||
|
# A text field displayed in the mod UI
|
||||||
|
credits="halbear1, Masterchefreal, TechyKnight, Peacefulgamer_, Billz_Game" #optional
|
||||||
|
# A text field displayed in the mod UI
|
||||||
|
authors="halbear1" #optional
|
||||||
|
# The description text for the mod (multi line!) (#mandatory)
|
||||||
|
description='''
|
||||||
|
SuperNova Space travel mod developed by Iron Horse Game Development (visit https://iron-horse.games/ to find out more)
|
||||||
|
Adds space travel to minecraft! Explore Dozens of planets(also dimensions) in an Open space dimension, collect new materials, technology and more!
|
||||||
|
Discover new species and civilisations, fend off against invaders and enemy ships!
|
||||||
|
|
||||||
|
this mod is likely compatible with other space mods, i(halbear1), always try to keep my mods dependency-less and compatible
|
||||||
|
'''
|
||||||
|
# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
|
||||||
|
[[dependencies.supernova]] #optional
|
||||||
|
# the modid of the dependency
|
||||||
|
modId="forge" #mandatory
|
||||||
|
# Does this dependency have to exist - if not, ordering below must be specified
|
||||||
|
mandatory=true #mandatory
|
||||||
|
# The version range of the dependency
|
||||||
|
versionRange="[36,)" #mandatory
|
||||||
|
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
|
||||||
|
ordering="NONE"
|
||||||
|
# Side this dependency is applied on - BOTH, CLIENT or SERVER
|
||||||
|
side="BOTH"
|
||||||
|
# Here's another dependency
|
||||||
|
[[dependencies.supernova]]
|
||||||
|
modId="minecraft"
|
||||||
|
mandatory=true
|
||||||
|
# This version range declares a minimum of the current minecraft version up to but not including the next major version
|
||||||
|
versionRange="[1.16.5,1.17)"
|
||||||
|
ordering="NONE"
|
||||||
|
side="BOTH"
|
||||||
BIN
src/main/resources/SuperNova.png
Normal file
BIN
src/main/resources/SuperNova.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": [
|
||||||
|
{
|
||||||
|
"model": "supernova:block/anatase_block", "weight": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/anatase_block1", "weight": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/anatase_block2", ",weight": 3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": [
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/anatase/anatase_ore", "weight": 7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/anatase/anatase_ore", "y": 180,"x": 180, "z": 180, "weight": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/anatase/anatase_ore1", "weight": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/anatase/anatase_ore1", "y": 180,"x": 180, "z": 180, "weight": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/anatase/anatase_ore2", "weight": 9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/anatase/anatase_ore2", "y": 180,"x": 180, "z": 180, "weight": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/anatase/anatase_ore3", "weight": 9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/anatase/anatase_ore3", "y": 180,"x": 180, "z": 180, "weight": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"facing=north": {
|
||||||
|
"model": "supernova:block/arc_furnace",
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
"facing=south": {
|
||||||
|
"model": "supernova:block/arc_furnace",
|
||||||
|
"y": 180
|
||||||
|
},
|
||||||
|
"facing=east": {
|
||||||
|
"model": "supernova:block/arc_furnace",
|
||||||
|
"y": 90
|
||||||
|
},
|
||||||
|
"facing=west": {
|
||||||
|
"model": "supernova:block/arc_furnace",
|
||||||
|
"y": 270
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": [
|
||||||
|
{
|
||||||
|
"model": "supernova:block/bauxite_block", "weight": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/bauxite_block1", "weight": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/bauxite_block2", ",weight": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"forge_marker": 1,
|
||||||
|
"defaults": {
|
||||||
|
"textures": {
|
||||||
|
"textureoverlay": "supernova:block/bauxite_ore"
|
||||||
|
},
|
||||||
|
"model": "supernova:block/ore_universal",
|
||||||
|
"uvlock": true
|
||||||
|
},
|
||||||
|
"variants": {
|
||||||
|
"normal": [
|
||||||
|
{
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"inventory": [
|
||||||
|
{
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": [
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/bauxite/bauxite_ore", "weight": 7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/bauxite/bauxite_ore", "y": 180,"x": 180, "z": 180, "weight": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/bauxite/bauxite_ore_variant1", "weight": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/bauxite/bauxite_ore_variant1", "y": 180,"x": 180, "z": 180, "weight": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/bauxite/bauxite_ore_variant2", "weight": 9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/bauxite/bauxite_ore_variant2", "y": 180,"x": 180, "z": 180, "weight": 7
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": {
|
||||||
|
"model": "supernova:block/copperblocks/chisled_copper_block"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": {
|
||||||
|
"model": "supernova:block/copperblocks/copper_block"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": [
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/copper/copper_ore", "weight": 7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/copper/copper_ore", "y": 180,"x": 180, "z": 180, "weight": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/copper/copper_ore1", "weight": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/copper/copper_ore1", "y": 180,"x": 180, "z": 180, "weight": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/copper/copper_ore2", "weight": 9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/copper/copper_ore2", "y": 180,"x": 180, "z": 180, "weight": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/copper/copper_ore3", "weight": 9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/copper/copper_ore3", "y": 180,"x": 180, "z": 180, "weight": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": {
|
||||||
|
"model": "supernova:block/simple_block"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": {
|
||||||
|
"model": "supernova:block/copperblocks/raw_copper_block"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": [
|
||||||
|
{
|
||||||
|
"model": "supernova:block/rutile_block", "weight": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/rutile_block1", "weight": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/rutile_block2", ",weight": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": [
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/rutile/rutile_ore"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/rutile/rutile_ore", "y": 180, "x": 180, "z": 180
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/rutile/rutile_ore1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/rutile/rutile_ore1", "y": 180, "x": 180, "z": 180
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/rutile/rutile_ore2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/rutile/rutile_ore2", "y": 180, "x": 180, "z": 180
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/rutile/rutile_ore3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/rutile/rutile_ore3", "y": 180, "x": 180, "z": 180
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/rutile/rutile_ore4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "supernova:block/ore/rutile/rutile_ore4", "y": 180, "x": 180, "z": 180
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"facing=north,floor_placement=false,roof_placement=false": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/fullpipestraight",
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
"facing=south,floor_placement=false,roof_placement=false": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/fullpipestraight",
|
||||||
|
"y": 180
|
||||||
|
},
|
||||||
|
"facing=east,floor_placement=false,roof_placement=false": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/fullpipestraight",
|
||||||
|
"y": 90
|
||||||
|
},
|
||||||
|
"facing=west,floor_placement=false,roof_placement=false": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/fullpipestraight",
|
||||||
|
"y": 270
|
||||||
|
},
|
||||||
|
"facing=up,floor_placement=false,roof_placement=false": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/fullpipestraight",
|
||||||
|
"x": 90
|
||||||
|
},
|
||||||
|
"facing=down,floor_placement=false,roof_placement=false": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/fullpipestraight",
|
||||||
|
"x": 270
|
||||||
|
},
|
||||||
|
"facing=north,floor_placement=true,roof_placement=false": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/steel_pipe_on_ground",
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
"facing=south,floor_placement=true,roof_placement=false": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/steel_pipe_on_ground",
|
||||||
|
"y": 180
|
||||||
|
},
|
||||||
|
"facing=east,floor_placement=true,roof_placement=false": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/steel_pipe_on_ground",
|
||||||
|
"y": 90
|
||||||
|
},
|
||||||
|
"facing=west,floor_placement=true,roof_placement=false": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/steel_pipe_on_ground",
|
||||||
|
"y": 270
|
||||||
|
},
|
||||||
|
"facing=up,floor_placement=true,roof_placement=false": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/steel_pipe_on_ground",
|
||||||
|
"x": 90
|
||||||
|
},
|
||||||
|
"facing=down,floor_placement=true,roof_placement=false": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/steel_pipe_on_ground",
|
||||||
|
"x": 270
|
||||||
|
},
|
||||||
|
"facing=north,floor_placement=false,roof_placement=true": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/steel_pipe_on_roof",
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
"facing=south,floor_placement=false,roof_placement=true": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/steel_pipe_on_roof",
|
||||||
|
"y": 180
|
||||||
|
},
|
||||||
|
"facing=east,floor_placement=false,roof_placement=true": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/steel_pipe_on_roof",
|
||||||
|
"y": 90
|
||||||
|
},
|
||||||
|
"facing=west,floor_placement=false,roof_placement=true": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/steel_pipe_on_roof",
|
||||||
|
"y": 270
|
||||||
|
},
|
||||||
|
"facing=up,floor_placement=false,roof_placement=true": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/steel_pipe_on_roof",
|
||||||
|
"x": 90
|
||||||
|
},
|
||||||
|
"facing=down,floor_placement=false,roof_placement=true": {
|
||||||
|
"model": "supernova:block/pipes/fullpipe/steel_pipe_on_roof",
|
||||||
|
"x": 270
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
52
src/main/resources/assets/supernova/lang/en_gb.json
Normal file
52
src/main/resources/assets/supernova/lang/en_gb.json
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
"item.supernova.bauxite_chunk": "Bauxite Chunk",
|
||||||
|
"item.supernova.rutile_chunk": "Rutile Chunk",
|
||||||
|
"item.supernova.copper_chunk": "Raw Copper Chunk",
|
||||||
|
"item.supernova.copper_ingot": "Copper Ingot",
|
||||||
|
"item.supernova.aluminium_ingot": "Aluminium Ingot",
|
||||||
|
"item.supernova.titanium_ingot": "Titanium Ingot",
|
||||||
|
"item.supernova.steel_ingot": "steel Ingot",
|
||||||
|
"item.supernova.silica_crystal": "Silica Crystal",
|
||||||
|
"item.supernova.silica_powder": "Powdered Silica",
|
||||||
|
"item.supernova.carborundum": "Carborundum",
|
||||||
|
"item.supernova.anatase_chunk": "Anatase Chunk",
|
||||||
|
"item.supernova.crude_oil_bucket": "Bucket of Crude Oil",
|
||||||
|
"item.supernova.refined_oil_bucket": "Bucket of Heavy Oil",
|
||||||
|
"item.supernova.salt_water_bucket": "Bucket of Salty Water",
|
||||||
|
"item.supernova.kerosene_bucket": "Bucket of Kerosene",
|
||||||
|
"item.supernova.new_world_md": "§5Music Disc§r",
|
||||||
|
"item.supernova.new_world_md.desc": "Billy Beats - New World",
|
||||||
|
"item.supernova.nebula_md": "§5Music Disc§r",
|
||||||
|
"item.supernova.nebula_md.desc": "Billy Beats - Nebula",
|
||||||
|
"item.supernova.stardust_mountain_md": "§5Music Disc§r",
|
||||||
|
"item.supernova.stardust_mountain_md.desc": "Billy Beats - Stardust Mountain",
|
||||||
|
"item.supernova.astral_nightmare_md": "§5Music Disc§r",
|
||||||
|
"item.supernova.astral_nightmare_md.desc": "Billy Beats - Astral Nightmare",
|
||||||
|
"item.supernova.fissure_in_space_md": "§5Music Disc§r",
|
||||||
|
"item.supernova.fissure_in_space_md.desc": "Billy Beats - Fissure In Space",
|
||||||
|
|
||||||
|
"block.supernova.bauxite_ore": "Bauxite Ore",
|
||||||
|
"block.supernova.rutile_ore": "Rutile Ore",
|
||||||
|
"block.supernova.copper_ore": "Copper Ore",
|
||||||
|
"block.supernova.bauxite_block": "Block Of Bauxite Chunk",
|
||||||
|
"block.supernova.rutile_chunk_block": "Block Of Rutile Chunk",
|
||||||
|
"block.supernova.raw_copper_block": "Block Of Raw Copper",
|
||||||
|
"block.supernova.copper_block": "Block Of Copper",
|
||||||
|
"block.supernova.chisled_copper_block": "Chisled Block Of Copper",
|
||||||
|
"block.supernova.arc_furnace": "§eElectric Arc Furnace§r",
|
||||||
|
"block.supernova.steel_pipe": "Steel Pipe",
|
||||||
|
"block.supernova.anatase_ore": "Anatase Ore",
|
||||||
|
"block.supernova.anatase_block": "Block Of Anatase Chunk",
|
||||||
|
|
||||||
|
"itemGroup.supernovaBlocksModTab": "SuperNova Blocks",
|
||||||
|
"itemGroup.supernovaItemsModTab": "SuperNova Items",
|
||||||
|
|
||||||
|
"tooltip.supernova.tooltip_prompt": "Hold §eSHIFT§r to see what this is used for",
|
||||||
|
"tooltip.supernova.bauxite_tooltip": "Melt this down to make §eMolten Bauxite§r using the §eElectric Arc Furnace §r \n §eMolten Bauxite§r is used to make §eAluminium!§r through an §eElectrolysis Cell§r",
|
||||||
|
"tooltip.supernova.rutile_tooltip": "Melt this down to make §eMolten Rutile§r using the §eElectric Arc Furnace §r \n §eMolten Rutile§r is used to make §eTitanium!§r through an §eElectrolysis Cell§r with §eChlorine Gas§r",
|
||||||
|
"tooltip.supernova.copperchunk_tooltip": "Smelt this into a §eCopper Ingot§r using any §eVanilla Furnace§r \n§eCopper Ingot§r is used to craft §eMolten Grade 1 Alloy§r and §eMolten Grade 2 Alloy§r \n§eCopper Block§r is used to craft an§e Electric Fly Wheel§r",
|
||||||
|
"tooltip.supernova.silicachunk_tooltip": "Grind into §eSilica Powder§r using a §eVanilla Stonecutter§r \n §eSilica Powder§r is used to make §eSilicon§r and §eCarborundum§r",
|
||||||
|
"tooltip.supernova.silicapowder_tooltip": "Burn in an §eElectric Arc Furnace §r with coal to make §eSilicon§r \n Blast using a §eVanilla Blast Furnace§r to create §eCarborundum§r",
|
||||||
|
"tooltip.supernova.steel_pipe_tooltip": "Pipe type: Liquids",
|
||||||
|
"tooltip.supernova.anatasechunk_tooltip": "Melt this down to make §eMolten anatase§r using the §eElectric Arc Furnace §r \n §eMolten anatase§r is used to make §eTitanium!§r through an §eElectrolysis Cell§r with §eChlorine Gas§r"
|
||||||
|
}
|
||||||
52
src/main/resources/assets/supernova/lang/en_us.json
Normal file
52
src/main/resources/assets/supernova/lang/en_us.json
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
"item.supernova.bauxite_chunk": "Bauxite Chunk",
|
||||||
|
"item.supernova.rutile_chunk": "Rutile Chunk",
|
||||||
|
"item.supernova.copper_chunk": "Raw Copper Chunk",
|
||||||
|
"item.supernova.copper_ingot": "Copper Ingot",
|
||||||
|
"item.supernova.aluminium_ingot": "Aluminum Ingot",
|
||||||
|
"item.supernova.titanium_ingot": "Titanium Ingot",
|
||||||
|
"item.supernova.steel_ingot": "steel Ingot",
|
||||||
|
"item.supernova.silica_crystal": "Silica Crystal",
|
||||||
|
"item.supernova.silica_powder": "Powdered Silica",
|
||||||
|
"item.supernova.carborundum": "Carborundum",
|
||||||
|
"item.supernova.anatase_chunk": "Anatase Chunk",
|
||||||
|
"item.supernova.crude_oil_bucket": "Bucket of Crude Oil",
|
||||||
|
"item.supernova.refined_oil_bucket": "Bucket of Heavy Oil",
|
||||||
|
"item.supernova.salt_water_bucket": "Bucket of Salty Water",
|
||||||
|
"item.supernova.kerosene_bucket": "Bucket of Kerosene",
|
||||||
|
"item.supernova.new_world_md": "§5Music Disk§r",
|
||||||
|
"item.supernova.new_world_md.desc": "Billy Beats - New World",
|
||||||
|
"item.supernova.nebula_md": "§5Music Disk§r",
|
||||||
|
"item.supernova.nebula_md.desc": "Billy Beats - Nebula",
|
||||||
|
"item.supernova.stardust_mountain_md": "§5Music Disk§r",
|
||||||
|
"item.supernova.stardust_mountain_md.desc": "Billy Beats - Stardust Mountain",
|
||||||
|
"item.supernova.astral_nightmare_md": "§5Music Disk§r",
|
||||||
|
"item.supernova.astral_nightmare_md.desc": "Billy Beats - Astral Nightmare",
|
||||||
|
"item.supernova.fissure_in_space_md": "§5Music Disk§r",
|
||||||
|
"item.supernova.fissure_in_space_md.desc": "Billy Beats - Fissure In Space",
|
||||||
|
|
||||||
|
"block.supernova.bauxite_ore": "Bauxite Ore",
|
||||||
|
"block.supernova.rutile_ore": "Rutile Ore",
|
||||||
|
"block.supernova.copper_ore": "Copper Ore",
|
||||||
|
"block.supernova.bauxite_block": "Block Of Bauxite Chunk",
|
||||||
|
"block.supernova.rutile_chunk_block": "Block Of Rutile Chunk",
|
||||||
|
"block.supernova.raw_copper_block": "Block Of Raw Copper",
|
||||||
|
"block.supernova.copper_block": "Block Of Copper",
|
||||||
|
"block.supernova.chisled_copper_block": "Chisled Block Of Copper",
|
||||||
|
"block.supernova.arc_furnace": "§eElectric Arc Furnace§r",
|
||||||
|
"block.supernova.steel_pipe": "Steel Pipe",
|
||||||
|
"block.supernova.anatase_ore": "Anatase Ore",
|
||||||
|
"block.supernova.anatase_block": "Block Of Anatase Chunk",
|
||||||
|
|
||||||
|
"itemGroup.supernovaBlocksModTab": "SuperNova Blocks",
|
||||||
|
"itemGroup.supernovaItemsModTab": "SuperNova Items",
|
||||||
|
|
||||||
|
"tooltip.supernova.tooltip_prompt": "Hold \u00A7eSHIFT\u00A7r to see what this is used for",
|
||||||
|
"tooltip.supernova.bauxite_tooltip": "Melt this down to make \u00A7eMolten Bauxite\u00A7r using the §eElectric Arc Furnace §r \n \u00A7eMolten Bauxite\u00A7r is used to make §eAluminum!§r through an \u00A7eElectrolysis Cell\u00A7r",
|
||||||
|
"tooltip.supernova.rutile_tooltip": "Melt this down to make §eMolten Rutile§r using the §eElectric Arc Furnace §r \n §eMolten Rutile§r is used to make §eTitanium!§r through an §eElectrolysis Cell§r with §eChlorine Gas§r",
|
||||||
|
"tooltip.supernova.copperchunk_tooltip": "Smelt this into a §eCopper Ingot§r using any §eVanilla Furnace§r \n§eCopper Ingot§r is used to craft §eMolten Grade 1 Alloy§r and §eMolten Grade 2 Alloy§r \n§eCopper Block§r is used to craft an§e Electric Fly Wheel§r",
|
||||||
|
"tooltip.supernova.silicachunk_tooltip": "Grind into §eSilica Powder§r using a §eVanilla Stonecutter§r \n §eSilica Powder§r is used to make §eSilicon§r and §eCarborundum§r",
|
||||||
|
"tooltip.supernova.silicapowder_tooltip": "Burn in an §eElectric Arc Furnace §r with coal to make §eSilicon§r \n Blast using a §eVanilla Blast Furnace§r to create §eCarborundum§r",
|
||||||
|
"tooltip.supernova.steel_pipe_tooltip": "Pipe type: Liquids",
|
||||||
|
"tooltip.supernova.anatasechunk_tooltip": "Melt this down to make §eMolten anatase§r using the §eElectric Arc Furnace §r \n §eMolten anatase§r is used to make §eTitanium!§r through an §eElectrolysis Cell§r with §eChlorine Gas§r"
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/anatase_block"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/anatase_block1"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/anatase_block2"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
|
||||||
|
{
|
||||||
|
"comment": "never again am i doing this manually - hal",
|
||||||
|
"parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/electric_arc_furnace1",
|
||||||
|
"particle": "block/stone"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"from": [0, 0, 0],
|
||||||
|
"to": [16, 16, 16],
|
||||||
|
"faces": {
|
||||||
|
"up": {"uv": [4, 0, 8, 5.33333], "texture": "#all", "cullface": "up" },
|
||||||
|
"down": {"uv": [4, 10.66667, 8, 16], "texture": "#all", "cullface": "down" },
|
||||||
|
"north": {"uv": [4, 5.33333, 8, 10.66667], "texture": "#all", "cullface": "north" },
|
||||||
|
"east": {"uv": [8, 5.33333, 12, 10.66667], "texture": "#all", "cullface": "east" },
|
||||||
|
"south": {"uv": [12, 5.33333, 16, 10.66667], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": {"uv": [0, 5.33333, 4, 10.66667], "texture": "#all", "cullface": "west" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/bauxite_block"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/bauxite_block1"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/bauxite_block2"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/chisled_copper_block"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/copper_block"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/raw_copper_block"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/anatase/anatase_ore"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/anatase/anatase_ore1"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/anatase/anatase_ore2"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/anatase/anatase_ore3"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/bauxite/bauxite_ore"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/bauxite/bauxite_ore1"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/bauxite/bauxite_ore2"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/copper/copper_ore"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/copper/copper_ore1"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/copper/copper_ore2"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/copper/copper_ore3"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/rutile/rutile_ore"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/rutile/rutile_ore1"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/rutile/rutile_ore2"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/rutile/rutile_ore3"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "supernova:block/ore/rutile/rutile_ore"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ "parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"particle": "block/stone",
|
||||||
|
"all": "block/stone",
|
||||||
|
"overlay": "#textureoverlay"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ "from": [ 0, 0, 0 ],
|
||||||
|
"to": [ 16, 16, 16 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "down" },
|
||||||
|
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "up" },
|
||||||
|
"north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "north" },
|
||||||
|
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "south" },
|
||||||
|
"west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "west" },
|
||||||
|
"east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "tintindex": 0, "cullface": "east" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
{
|
||||||
|
"credit": "Made with Blockbench",
|
||||||
|
"texture_size": [64, 64],
|
||||||
|
"textures": {
|
||||||
|
"0": "supernova:block/pipe/fullpipe/pipeironmetal",
|
||||||
|
"particle": "supernova:block/pipe/fullpipe/pipeironmetal"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"from": [4, 4, 0],
|
||||||
|
"to": [12, 12, 1],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 0]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [3.5, 5.75, 5.5, 7.75], "texture": "#0"},
|
||||||
|
"east": {"uv": [6.75, 6.75, 7, 8.75], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.75, 2.25, 7.75, 4.25], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 7.25, 0.25, 9.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [8, 2, 6, 1.75], "texture": "#0"},
|
||||||
|
"down": {"uv": [9.25, 6.75, 7.25, 7], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [4, 4, 15],
|
||||||
|
"to": [12, 12, 16],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 15]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [7.75, 2.25, 5.75, 4.25], "texture": "#0"},
|
||||||
|
"east": {"uv": [6.75, 6.75, 7, 8.75], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.5, 5.75, 3.5, 7.75], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 7.25, 0.25, 9.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [8, 2, 6, 1.75], "texture": "#0"},
|
||||||
|
"down": {"uv": [9.25, 6.75, 7.25, 7], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [3.9, 3.9, 14.9],
|
||||||
|
"to": [12.1, 12.1, 16.1],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 15]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [7.75, 2.25, 5.75, 4.25], "texture": "#0"},
|
||||||
|
"east": {"uv": [6.75, 6.75, 7, 8.75], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.5, 8, 3.5, 10], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 7.25, 0.25, 9.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [8, 2, 6, 1.75], "texture": "#0"},
|
||||||
|
"down": {"uv": [9.25, 6.75, 7.25, 7], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [3.9, 3.9, -0.1],
|
||||||
|
"to": [12.1, 12.1, 1.1],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 1]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [3.5, 8, 5.5, 10], "texture": "#0"},
|
||||||
|
"east": {"uv": [7, 6.75, 6.75, 8.75], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.75, 2.25, 7.75, 4.25], "texture": "#0"},
|
||||||
|
"west": {"uv": [0.25, 7.25, 0, 9.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [8, 1.75, 6, 2], "texture": "#0"},
|
||||||
|
"down": {"uv": [9.25, 7, 7.25, 6.75], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [5, 5, 1],
|
||||||
|
"to": [11, 11, 15],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 14]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [5.75, 4.5, 7.25, 6], "texture": "#0"},
|
||||||
|
"east": {"uv": [0, 1.75, 3.5, 3.25], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.75, 4.5, 7.25, 6], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 1.75, 3.5, 3.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [1.5, 7, 0, 3.5], "texture": "#0"},
|
||||||
|
"down": {"uv": [3.25, 3.5, 1.75, 7], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [4.9, 4.9, 0.9],
|
||||||
|
"to": [11.1, 11.1, 15.1],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 14]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [5.75, 13.5, 7.25, 15], "texture": "#0"},
|
||||||
|
"east": {"uv": [0, 10.75, 3.5, 12.25], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.75, 13.5, 7.25, 15], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 10.75, 3.5, 12.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [1.5, 16, 0, 12.5], "texture": "#0"},
|
||||||
|
"down": {"uv": [3.25, 12.5, 1.75, 16], "texture": "#0"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"display": {
|
||||||
|
"thirdperson_righthand": {
|
||||||
|
"rotation": [0, 90, 0],
|
||||||
|
"scale": [0.5, 0.5, 0.5]
|
||||||
|
},
|
||||||
|
"thirdperson_lefthand": {
|
||||||
|
"rotation": [0, 90, 0],
|
||||||
|
"scale": [0.5, 0.5, 0.5]
|
||||||
|
},
|
||||||
|
"firstperson_righthand": {
|
||||||
|
"rotation": [0, 29, 0],
|
||||||
|
"translation": [0, 1.5, -3.5],
|
||||||
|
"scale": [1.15, 0.91, 0.61]
|
||||||
|
},
|
||||||
|
"firstperson_lefthand": {
|
||||||
|
"rotation": [0, 29, 0],
|
||||||
|
"translation": [0, 1.5, -3.5],
|
||||||
|
"scale": [1.15, 0.91, 0.61]
|
||||||
|
},
|
||||||
|
"ground": {
|
||||||
|
"scale": [0.5, 0.5, 0.5]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,236 @@
|
|||||||
|
{
|
||||||
|
"credit": "Made with Blockbench",
|
||||||
|
"texture_size": [64, 64],
|
||||||
|
"textures": {
|
||||||
|
"0": "supernova:block/pipe/fullpipe/pipeironmetalgrounded",
|
||||||
|
"particle": "supernova:block/pipe/fullpipe/pipeironmetalgrounded"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"from": [4, 4, 0],
|
||||||
|
"to": [12, 12, 1],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 0]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [3.5, 5.75, 5.5, 7.75], "texture": "#0"},
|
||||||
|
"east": {"uv": [6.75, 6.75, 7, 8.75], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.75, 2.25, 7.75, 4.25], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 7.25, 0.25, 9.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [8, 2, 6, 1.75], "texture": "#0"},
|
||||||
|
"down": {"uv": [9.25, 6.75, 7.25, 7], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [4, 4, 15],
|
||||||
|
"to": [12, 12, 16],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 15]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [7.75, 2.25, 5.75, 4.25], "texture": "#0"},
|
||||||
|
"east": {"uv": [6.75, 6.75, 7, 8.75], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.5, 5.75, 3.5, 7.75], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 7.25, 0.25, 9.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [8, 2, 6, 1.75], "texture": "#0"},
|
||||||
|
"down": {"uv": [9.25, 6.75, 7.25, 7], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [3.9, 3.9, 14.9],
|
||||||
|
"to": [12.1, 12.1, 16.1],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 15]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [7.75, 2.25, 5.75, 4.25], "texture": "#0"},
|
||||||
|
"east": {"uv": [6.75, 6.75, 7, 8.75], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.5, 8, 3.5, 10], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 7.25, 0.25, 9.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [8, 2, 6, 1.75], "texture": "#0"},
|
||||||
|
"down": {"uv": [9.25, 6.75, 7.25, 7], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [3.9, 3.9, -0.1],
|
||||||
|
"to": [12.1, 12.1, 1.1],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 1]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [3.5, 8, 5.5, 10], "texture": "#0"},
|
||||||
|
"east": {"uv": [7, 6.75, 6.75, 8.75], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.75, 2.25, 7.75, 4.25], "texture": "#0"},
|
||||||
|
"west": {"uv": [0.25, 7.25, 0, 9.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [8, 1.75, 6, 2], "texture": "#0"},
|
||||||
|
"down": {"uv": [9.25, 7, 7.25, 6.75], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [5, 5, 1],
|
||||||
|
"to": [11, 11, 15],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 14]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [5.75, 4.5, 7.25, 6], "texture": "#0"},
|
||||||
|
"east": {"uv": [0, 1.75, 3.5, 3.25], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.75, 4.5, 7.25, 6], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 1.75, 3.5, 3.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [1.5, 7, 0, 3.5], "texture": "#0"},
|
||||||
|
"down": {"uv": [3.25, 3.5, 1.75, 7], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [4.9, 4.9, 0.9],
|
||||||
|
"to": [11.1, 11.1, 15.1],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 14]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [5.75, 13.5, 7.25, 15], "texture": "#0"},
|
||||||
|
"east": {"uv": [0, 10.75, 3.5, 12.25], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.75, 13.5, 7.25, 15], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 10.75, 3.5, 12.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [1.5, 16, 0, 12.5], "texture": "#0"},
|
||||||
|
"down": {"uv": [3.25, 12.5, 1.75, 16], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [4, 4.9625, 7],
|
||||||
|
"to": [12, 4.9625, 9],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [15, -7.0375, 7]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [14, 0, 16, 0], "texture": "#0"},
|
||||||
|
"east": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"south": {"uv": [14, 0, 16, 0], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"up": {"uv": [12.5, 13.25, 14.5, 13.75], "texture": "#0"},
|
||||||
|
"down": {"uv": [12.5, 14, 14.5, 14.5], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [12, 0, 7],
|
||||||
|
"to": [12, 12, 9],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [15, 0, 7]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [13, 0, 13, 3], "texture": "#0"},
|
||||||
|
"east": {"uv": [14.75, 13, 15.25, 16], "texture": "#0"},
|
||||||
|
"south": {"uv": [13.5, 0, 13.5, 3], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.5, 13, 16, 16], "texture": "#0"},
|
||||||
|
"up": {"uv": [15.25, 0.5, 15.25, 1], "texture": "#0"},
|
||||||
|
"down": {"uv": [15.25, 0.5, 15.25, 1], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [11, 0.05, 7],
|
||||||
|
"to": [13, 0.05, 9],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [15, 0, 7]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"east": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"south": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"up": {"uv": [11.75, 12.75, 12.25, 13.25], "texture": "#0"},
|
||||||
|
"down": {"uv": [11.75, 13.5, 12.25, 14], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [10.5, 0.15, 6.5],
|
||||||
|
"to": [13.5, 0.15, 9.5],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [15.5, 0.15, 7.5]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [15.25, 0.5, 16, 0.5], "texture": "#0"},
|
||||||
|
"east": {"uv": [15.25, 0.5, 16, 0.5], "texture": "#0"},
|
||||||
|
"south": {"uv": [15.25, 0.5, 16, 0.5], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.25, 0.5, 16, 0.5], "texture": "#0"},
|
||||||
|
"up": {"uv": [11.5, 14.25, 12.25, 15], "texture": "#0"},
|
||||||
|
"down": {"uv": [11.5, 15.25, 12.25, 16], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [2.5, 0.15, 6.5],
|
||||||
|
"to": [5.5, 0.15, 9.5],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [0.5, 0.15, 7.5]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [16, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"east": {"uv": [16, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"south": {"uv": [16, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"west": {"uv": [16, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"up": {"uv": [12.25, 14.25, 11.5, 15], "texture": "#0"},
|
||||||
|
"down": {"uv": [12.25, 15.25, 11.5, 16], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [3, 0.05, 7],
|
||||||
|
"to": [5, 0.05, 9],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [1, 0, 7]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [15.75, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"east": {"uv": [15.75, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"south": {"uv": [15.75, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.75, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"up": {"uv": [12.25, 12.75, 11.75, 13.25], "texture": "#0"},
|
||||||
|
"down": {"uv": [12.25, 13.5, 11.75, 14], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [4, 0, 7],
|
||||||
|
"to": [4, 12, 9],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [1, 0, 7]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [13, 0, 13, 3], "texture": "#0"},
|
||||||
|
"east": {"uv": [16, 13, 15.5, 16], "texture": "#0"},
|
||||||
|
"south": {"uv": [13.5, 0, 13.5, 3], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.25, 13, 14.75, 16], "texture": "#0"},
|
||||||
|
"up": {"uv": [15.25, 0.5, 15.25, 1], "texture": "#0"},
|
||||||
|
"down": {"uv": [15.25, 0.5, 15.25, 1], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [4, 12, 7],
|
||||||
|
"to": [12, 12, 9],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [15, 0, 7]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [14, 0, 16, 0], "texture": "#0"},
|
||||||
|
"east": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"south": {"uv": [14, 0, 16, 0], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"up": {"uv": [12.5, 14.75, 14.5, 15.25], "texture": "#0"},
|
||||||
|
"down": {"uv": [12.5, 15.5, 14.5, 16], "texture": "#0"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"display": {
|
||||||
|
"thirdperson_righthand": {
|
||||||
|
"rotation": [0, 90, 0],
|
||||||
|
"scale": [0.5, 0.5, 0.5]
|
||||||
|
},
|
||||||
|
"thirdperson_lefthand": {
|
||||||
|
"rotation": [0, 90, 0],
|
||||||
|
"scale": [0.5, 0.5, 0.5]
|
||||||
|
},
|
||||||
|
"firstperson_righthand": {
|
||||||
|
"rotation": [0, 29, 0],
|
||||||
|
"translation": [0, 1.5, -3.5],
|
||||||
|
"scale": [1.15, 0.91, 0.61]
|
||||||
|
},
|
||||||
|
"firstperson_lefthand": {
|
||||||
|
"rotation": [0, 29, 0],
|
||||||
|
"translation": [0, 1.5, -3.5],
|
||||||
|
"scale": [1.15, 0.91, 0.61]
|
||||||
|
},
|
||||||
|
"ground": {
|
||||||
|
"scale": [0.5, 0.5, 0.5]
|
||||||
|
},
|
||||||
|
"gui": {
|
||||||
|
"rotation": [23, 31, 0]
|
||||||
|
},
|
||||||
|
"fixed": {
|
||||||
|
"rotation": [0, 90, 0],
|
||||||
|
"translation": [0, 0, -3.25]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"groups": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3,
|
||||||
|
4,
|
||||||
|
5,
|
||||||
|
{
|
||||||
|
"name": "group",
|
||||||
|
"origin": [15, 0, 3],
|
||||||
|
"color": 0,
|
||||||
|
"children": [6, 7, 8, 9, 10, 11, 12, 13]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,236 @@
|
|||||||
|
{
|
||||||
|
"credit": "Made with Blockbench",
|
||||||
|
"texture_size": [64, 64],
|
||||||
|
"textures": {
|
||||||
|
"0": "supernova:block/pipe/fullpipe/pipeironmetalroof",
|
||||||
|
"particle": "supernova:block/pipe/fullpipe/pipeironmetalroof"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"from": [4, 4, 0],
|
||||||
|
"to": [12, 12, 1],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 0]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [3.5, 5.75, 5.5, 7.75], "texture": "#0"},
|
||||||
|
"east": {"uv": [6.75, 6.75, 7, 8.75], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.75, 2.25, 7.75, 4.25], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 7.25, 0.25, 9.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [8, 2, 6, 1.75], "texture": "#0"},
|
||||||
|
"down": {"uv": [9.25, 6.75, 7.25, 7], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [4, 4, 15],
|
||||||
|
"to": [12, 12, 16],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 15]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [7.75, 2.25, 5.75, 4.25], "texture": "#0"},
|
||||||
|
"east": {"uv": [6.75, 6.75, 7, 8.75], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.5, 5.75, 3.5, 7.75], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 7.25, 0.25, 9.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [8, 2, 6, 1.75], "texture": "#0"},
|
||||||
|
"down": {"uv": [9.25, 6.75, 7.25, 7], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [3.9, 3.9, 14.9],
|
||||||
|
"to": [12.1, 12.1, 16.1],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 15]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [7.75, 2.25, 5.75, 4.25], "texture": "#0"},
|
||||||
|
"east": {"uv": [6.75, 6.75, 7, 8.75], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.5, 8, 3.5, 10], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 7.25, 0.25, 9.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [8, 2, 6, 1.75], "texture": "#0"},
|
||||||
|
"down": {"uv": [9.25, 6.75, 7.25, 7], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [3.9, 3.9, -0.1],
|
||||||
|
"to": [12.1, 12.1, 1.1],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 1]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [3.5, 8, 5.5, 10], "texture": "#0"},
|
||||||
|
"east": {"uv": [7, 6.75, 6.75, 8.75], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.75, 2.25, 7.75, 4.25], "texture": "#0"},
|
||||||
|
"west": {"uv": [0.25, 7.25, 0, 9.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [8, 1.75, 6, 2], "texture": "#0"},
|
||||||
|
"down": {"uv": [9.25, 7, 7.25, 6.75], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [5, 5, 1],
|
||||||
|
"to": [11, 11, 15],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 14]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [5.75, 4.5, 7.25, 6], "texture": "#0"},
|
||||||
|
"east": {"uv": [0, 1.75, 3.5, 3.25], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.75, 4.5, 7.25, 6], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 1.75, 3.5, 3.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [1.5, 7, 0, 3.5], "texture": "#0"},
|
||||||
|
"down": {"uv": [3.25, 3.5, 1.75, 7], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [4.9, 4.9, 0.9],
|
||||||
|
"to": [11.1, 11.1, 15.1],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [7, 4, 14]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [5.75, 13.5, 7.25, 15], "texture": "#0"},
|
||||||
|
"east": {"uv": [0, 10.75, 3.5, 12.25], "texture": "#0"},
|
||||||
|
"south": {"uv": [5.75, 13.5, 7.25, 15], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 10.75, 3.5, 12.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [1.5, 16, 0, 12.5], "texture": "#0"},
|
||||||
|
"down": {"uv": [3.25, 12.5, 1.75, 16], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [4, 4.9625, 7],
|
||||||
|
"to": [12, 4.9625, 9],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [15, -7.0375, 7]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [14, 0, 16, 0], "texture": "#0"},
|
||||||
|
"east": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"south": {"uv": [14, 0, 16, 0], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"up": {"uv": [12.5, 13.25, 14.5, 13.75], "texture": "#0"},
|
||||||
|
"down": {"uv": [12.5, 14, 14.5, 14.5], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [12, 5, 7],
|
||||||
|
"to": [12, 16, 9],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [15, 16, 7]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [13, 3, 13, 0], "texture": "#0"},
|
||||||
|
"east": {"uv": [14.75, 16, 15.25, 13.25], "texture": "#0"},
|
||||||
|
"south": {"uv": [13.5, 3, 13.5, 0], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.5, 16, 16, 13.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [15.25, 1, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"down": {"uv": [15.25, 1, 15.25, 0.5], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [11, 15.95, 7],
|
||||||
|
"to": [13, 15.95, 9],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [15, 16, 7]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"east": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"south": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"up": {"uv": [11.75, 14, 12.25, 13.5], "texture": "#0"},
|
||||||
|
"down": {"uv": [11.75, 13.25, 12.25, 12.75], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [10.5, 15.85, 6.5],
|
||||||
|
"to": [13.5, 15.85, 9.5],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [15.5, 15.85, 7.5]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [15.25, 0.5, 16, 0.5], "texture": "#0"},
|
||||||
|
"east": {"uv": [15.25, 0.5, 16, 0.5], "texture": "#0"},
|
||||||
|
"south": {"uv": [15.25, 0.5, 16, 0.5], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.25, 0.5, 16, 0.5], "texture": "#0"},
|
||||||
|
"up": {"uv": [11.5, 16, 12.25, 15.25], "texture": "#0"},
|
||||||
|
"down": {"uv": [11.5, 15, 12.25, 14.25], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [2.5, 15.85, 6.5],
|
||||||
|
"to": [5.5, 15.85, 9.5],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [0.5, 15.85, 7.5]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [16, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"east": {"uv": [16, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"south": {"uv": [16, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"west": {"uv": [16, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"up": {"uv": [12.25, 16, 11.5, 15.25], "texture": "#0"},
|
||||||
|
"down": {"uv": [12.25, 15, 11.5, 14.25], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [3, 15.95, 7],
|
||||||
|
"to": [5, 15.95, 9],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [1, 16, 7]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [15.75, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"east": {"uv": [15.75, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"south": {"uv": [15.75, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.75, 0.5, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"up": {"uv": [12.25, 14, 11.75, 13.5], "texture": "#0"},
|
||||||
|
"down": {"uv": [12.25, 13.25, 11.75, 12.75], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [4, 5, 7],
|
||||||
|
"to": [4, 16, 9],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [1, 16, 7]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [13, 3, 13, 0], "texture": "#0"},
|
||||||
|
"east": {"uv": [16, 16, 15.5, 13.25], "texture": "#0"},
|
||||||
|
"south": {"uv": [13.5, 3, 13.5, 0], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.25, 16, 14.75, 13.25], "texture": "#0"},
|
||||||
|
"up": {"uv": [15.25, 1, 15.25, 0.5], "texture": "#0"},
|
||||||
|
"down": {"uv": [15.25, 1, 15.25, 0.5], "texture": "#0"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [4, 12, 7],
|
||||||
|
"to": [12, 12, 9],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [15, 0, 7]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [14, 0, 16, 0], "texture": "#0"},
|
||||||
|
"east": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"south": {"uv": [14, 0, 16, 0], "texture": "#0"},
|
||||||
|
"west": {"uv": [15.25, 0.5, 15.75, 0.5], "texture": "#0"},
|
||||||
|
"up": {"uv": [12.5, 14.75, 14.5, 15.25], "texture": "#0"},
|
||||||
|
"down": {"uv": [12.5, 15.5, 14.5, 16], "texture": "#0"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"display": {
|
||||||
|
"thirdperson_righthand": {
|
||||||
|
"rotation": [0, 90, 0],
|
||||||
|
"scale": [0.5, 0.5, 0.5]
|
||||||
|
},
|
||||||
|
"thirdperson_lefthand": {
|
||||||
|
"rotation": [0, 90, 0],
|
||||||
|
"scale": [0.5, 0.5, 0.5]
|
||||||
|
},
|
||||||
|
"firstperson_righthand": {
|
||||||
|
"rotation": [0, 29, 0],
|
||||||
|
"translation": [0, 1.5, -3.5],
|
||||||
|
"scale": [1.15, 0.91, 0.61]
|
||||||
|
},
|
||||||
|
"firstperson_lefthand": {
|
||||||
|
"rotation": [0, 29, 0],
|
||||||
|
"translation": [0, 1.5, -3.5],
|
||||||
|
"scale": [1.15, 0.91, 0.61]
|
||||||
|
},
|
||||||
|
"ground": {
|
||||||
|
"scale": [0.5, 0.5, 0.5]
|
||||||
|
},
|
||||||
|
"gui": {
|
||||||
|
"rotation": [23, 31, 0]
|
||||||
|
},
|
||||||
|
"fixed": {
|
||||||
|
"rotation": [0, 90, 0],
|
||||||
|
"translation": [0, 0, -3.25]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"groups": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3,
|
||||||
|
4,
|
||||||
|
5,
|
||||||
|
{
|
||||||
|
"name": "group",
|
||||||
|
"origin": [15, 0, 3],
|
||||||
|
"color": 0,
|
||||||
|
"children": [6, 7, 8, 9, 10, 11, 12, 13]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/rutile_chunk_block"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/rutile_chunk_block1"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/rutile_chunk_block2"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/cube_all",
|
||||||
|
"textures": {
|
||||||
|
"all": "supernova:block/simple_block"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"credit": "Made with Blockbench",
|
||||||
|
"texture_size": [32, 32],
|
||||||
|
"textures": {
|
||||||
|
"0": "supernova:block/pipe_texture",
|
||||||
|
"particle": "supernova:block/pipe_texture"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"from": [4, 4, 0],
|
||||||
|
"to": [12, 12, 16],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [4, 8, 8, 12], "texture": "#0"},
|
||||||
|
"east": {"uv": [0, 0, 8, 4], "texture": "#0"},
|
||||||
|
"south": {"uv": [8, 8, 12, 12], "texture": "#0"},
|
||||||
|
"west": {"uv": [0, 4, 8, 8], "texture": "#0"},
|
||||||
|
"up": {"uv": [4, 16, 0, 8], "texture": "#0"},
|
||||||
|
"down": {"uv": [12, 0, 8, 8], "texture": "#0"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"display": {
|
||||||
|
"thirdperson_righthand": {
|
||||||
|
"rotation": [0, 90, 0],
|
||||||
|
"scale": [0.4, 0.4, 0.4]
|
||||||
|
},
|
||||||
|
"thirdperson_lefthand": {
|
||||||
|
"rotation": [0, 90, 0],
|
||||||
|
"scale": [0.4, 0.4, 0.4]
|
||||||
|
},
|
||||||
|
"firstperson_righthand": {
|
||||||
|
"translation": [-1.25, 3.75, 1.25],
|
||||||
|
"scale": [0.4, 0.4, 0.3]
|
||||||
|
},
|
||||||
|
"firstperson_lefthand": {
|
||||||
|
"translation": [-1.25, 3.75, 1.25],
|
||||||
|
"scale": [0.4, 0.4, 0.3]
|
||||||
|
},
|
||||||
|
"ground": {
|
||||||
|
"scale": [0.4, 0.4, 0.4]
|
||||||
|
},
|
||||||
|
"gui": {
|
||||||
|
"rotation": [15, 35, 0]
|
||||||
|
},
|
||||||
|
"head": {
|
||||||
|
"translation": [0, 8.25, 0]
|
||||||
|
},
|
||||||
|
"fixed": {
|
||||||
|
"rotation": [0, 90, 0]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"name": "pipe",
|
||||||
|
"origin": [7, 6, 0],
|
||||||
|
"color": 0,
|
||||||
|
"children": [0]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "supernova:item/aluminium_ingot"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"parent": "supernova:block/anatase_block1"
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user