From 374a06b1a9a3e4f58660682e72e5b61a99701291 Mon Sep 17 00:00:00 2001 From: LimePot Date: Fri, 6 Jan 2023 16:29:35 -0700 Subject: [PATCH] Successfully Registered flower --- README.md | 33 +++--------------- gradle.properties | 4 +-- .../com/example/example_mod/ExampleMod.java | 18 ---------- .../java/xyz/limepot/roses_mod/RosesMod.java | 31 ++++++++++++++++ .../roses_mod}/mixin/TitleScreenMixin.java | 8 ++--- .../resources/assets/example_mod/icon.png | Bin 207 -> 0 bytes src/main/resources/assets/roses_mod/icon.png | Bin 0 -> 8491 bytes .../roses_mod/textures/blocks/flower_rose.png | Bin 0 -> 355 bytes src/main/resources/quilt.mod.json | 22 ++++++------ ..._mod.mixins.json => roses_mod.mixins.json} | 4 +-- 10 files changed, 55 insertions(+), 65 deletions(-) delete mode 100644 src/main/java/com/example/example_mod/ExampleMod.java create mode 100644 src/main/java/xyz/limepot/roses_mod/RosesMod.java rename src/main/java/{com/example/example_mod => xyz/limepot/roses_mod}/mixin/TitleScreenMixin.java (64%) delete mode 100644 src/main/resources/assets/example_mod/icon.png create mode 100644 src/main/resources/assets/roses_mod/icon.png create mode 100644 src/main/resources/assets/roses_mod/textures/blocks/flower_rose.png rename src/main/resources/{example_mod.mixins.json => roses_mod.mixins.json} (69%) diff --git a/README.md b/README.md index 5bdf426..a88b892 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,6 @@ -# Quilt Template Mod +# Roses Mod -The official Quilt template mod. You can use it as a template for your own mods! - -## Usage - -In order to use this mod as a template: - -1. Create a new repository from this template with `Use this template` -2. Clone the recently-created repo on your PC -3. Make the necessary changes in order to make it yours: - - Update `gradle.properties` in order to use your Maven group and mod ID - - If you don't know which Maven group to use, and you are planning to host the mod's source code on GitHub, use `io.github.` - - Update `quilt.mod.json` in order to reflect your mod's metadata - - If you are planning to include (jar-in-jar) a mod, don't forget to declare its dependency on it! - - The icon provided here is a placeholder one. If you aren't able to replace it yet, you can delete it and remove the "icon" property - - Create a LICENSE file for this mod! If you don't know which license to use, check out [here](https://choosealicense.com/). - - If you use `LICENSE.md`, don't forget to update the buildscript in order to use that file name! - - In `quilt.mod.json`, don't forget to put the license's [SPDX identifier](https://spdx.org/licenses/) under the `"license"` property in `"metadata"`. - - The GPLv3 and AGPLv3 are not valid mod licenses, so you can use almost any license except for those. - - Update the Java sub-directory structure so it reflects your Maven group - - If the dependencies on `gradle/libs.versions.toml` isn't up-to-date, feel free to update them! The [linked utility](https://lambdaurora.dev/tools/import_quilt.html) should help you in this easy and quick process. -4. The mod is now ready to be worked on! - -## License - -This template on the QuiltMC GitHub is licensed under the [Creative Common Zero v1.0 license](./LICENSE-TEMPLATE.md). - -Mods created with this template are not automatically licensed under the CC0, and are not required to give any kind of credit back to QuiltMC for this template. +## Features: + - Added the old singular roses + - Rose bushes drop a few individual roses + - Roses can be used to craft rose bushes diff --git a/gradle.properties b/gradle.properties index 0f3bd13..24fd873 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ org.gradle.parallel = true # Mod Properties version = 1.0.0 -maven_group = com.example -archives_base_name = example_mod +maven_group = xyz.limepot +archives_base_name = roses_mod # Dependencies are managed at gradle/libs.versions.toml diff --git a/src/main/java/com/example/example_mod/ExampleMod.java b/src/main/java/com/example/example_mod/ExampleMod.java deleted file mode 100644 index b64b63c..0000000 --- a/src/main/java/com/example/example_mod/ExampleMod.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.example.example_mod; - -import org.quiltmc.loader.api.ModContainer; -import org.quiltmc.qsl.base.api.entrypoint.ModInitializer; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class ExampleMod implements ModInitializer { - // This logger is used to write text to the console and the log file. - // It is considered best practice to use your mod name as the logger's name. - // That way, it's clear which mod wrote info, warnings, and errors. - public static final Logger LOGGER = LoggerFactory.getLogger("Example Mod"); - - @Override - public void onInitialize(ModContainer mod) { - LOGGER.info("Hello Quilt world from {}!", mod.metadata().name()); - } -} diff --git a/src/main/java/xyz/limepot/roses_mod/RosesMod.java b/src/main/java/xyz/limepot/roses_mod/RosesMod.java new file mode 100644 index 0000000..41cb6d7 --- /dev/null +++ b/src/main/java/xyz/limepot/roses_mod/RosesMod.java @@ -0,0 +1,31 @@ +package xyz.limepot.roses_mod; + +import net.minecraft.block.Block; +import net.minecraft.block.Material; +import net.minecraft.item.BlockItem; +import net.minecraft.registry.Registries; +import net.minecraft.registry.Registry; +import net.minecraft.util.Identifier; +import org.quiltmc.loader.api.ModContainer; +import org.quiltmc.qsl.base.api.entrypoint.ModInitializer; +import org.quiltmc.qsl.block.extensions.api.QuiltBlockSettings; +import org.quiltmc.qsl.item.setting.api.QuiltItemSettings; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class RosesMod implements ModInitializer { + public static final String MOD_ID = "roses_mod"; + public static final Logger LOGGER = LoggerFactory.getLogger("Roses Mod"); + + public static final Block ROSE_FLOWER = new Block(QuiltBlockSettings.of(Material.ORGANIC_PRODUCT).strength(0.3f)); + + + @Override + public void onInitialize(ModContainer mod) { + Registry.register(Registries.BLOCK, new Identifier(MOD_ID, "rose_flower"), ROSE_FLOWER); + Registry.register(Registries.ITEM, new Identifier(MOD_ID, "rose_flower"), new BlockItem(ROSE_FLOWER, new QuiltItemSettings())); + + LOGGER.info("Hello Quilt world from {}!", mod.metadata().name()); + } + +} diff --git a/src/main/java/com/example/example_mod/mixin/TitleScreenMixin.java b/src/main/java/xyz/limepot/roses_mod/mixin/TitleScreenMixin.java similarity index 64% rename from src/main/java/com/example/example_mod/mixin/TitleScreenMixin.java rename to src/main/java/xyz/limepot/roses_mod/mixin/TitleScreenMixin.java index 05ea323..71db72b 100644 --- a/src/main/java/com/example/example_mod/mixin/TitleScreenMixin.java +++ b/src/main/java/xyz/limepot/roses_mod/mixin/TitleScreenMixin.java @@ -1,6 +1,6 @@ -package com.example.example_mod.mixin; +package xyz.limepot.roses_mod.mixin; -import com.example.example_mod.ExampleMod; +import xyz.limepot.roses_mod.RosesMod; import net.minecraft.client.gui.screen.TitleScreen; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; @@ -10,7 +10,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(TitleScreen.class) public class TitleScreenMixin { @Inject(method = "init", at = @At("TAIL")) - public void exampleMod$onInit(CallbackInfo ci) { - ExampleMod.LOGGER.info("This line is printed by an example mod mixin!"); + public void rosesMod$onInit(CallbackInfo ci) { + RosesMod.LOGGER.info("This line is printed by an example mod mixin!"); } } diff --git a/src/main/resources/assets/example_mod/icon.png b/src/main/resources/assets/example_mod/icon.png deleted file mode 100644 index d42fc1ea554d071d2007278d85a81e4d807ae490..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 207 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?I3?vN&YJLDI#^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvI6;R0X`wFK>7#6kG0nxb^=+P1s;*b3=DjSK$uZf!>a)(806{V7?N@C?X``( z3<^BV8$L1q`LAOfDIm>}?h|@`rH6F(xpP2eK#<3<=;gH(aAM6Bv=06JYUG|cH!pvuXvOr>X+O zJ*TUGW~RHw&WTi4l|u!61OWg5R0Vly&3_2_uOT7)>jy>6CjbCosI8Qgx`LDxxr?i_ zwXK5{06?D*kRT*KsE!l)>bTkdHj34a4Ig<==>V&wY2fY=@|`as4`tfX#HuIDm)S~yff2bs$?mx4v3H`fzSE^f zY))f9BT7fgXDhxZSIb1&`-QcG8Jdg9m6S^rixD-oxjpf@D9I`v?{xm z-~N!%ernu|VCrl_$+(PI0t;C`6b=(qxgt);YvF!ctS>(wFfb~1{!HV_aIglT8Wm=o zA@2-?iamB4Rj~`~dVuI4Q~0A#1n`ob;zdXN+oQ4b{J@auzLc#Sz03{UOH2&&N#?Zs z==SpRzWdc^eq$RQjnOqQ!G?0+Us(_=l;orV@Bcgi7oGp@KltDxZ{P+1uu}ckfZioy zp8tY~?g}b0h{r$#JXG{OYNg-*LWJ%z`tDN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Xak@ksvQR zS0Nu|>$IkCIb!KVuMFSA{bsrD)WIiXM1Z=#mc^glOTJnYblJYYA2WhqxL0^E4EJZ+ zVVCI6Yt*BgTZ}kqk#UR6#qq+M2ca<-9T*|Hex}iZ z{jXq+v8xM|i7wl1dM@V^M2TGVR@9j=VAmCVHK{H?hWi#q`Z{o52&@ffK}ax*G}1%K zNQ1IIBFPA&BH&$w@`k6?1m>rttsMRjZ1?3Jh`*8(g_@%|pGtRCUMSL|CM;XLLZZ5_J;}P94f$zt& z<{59VHajq})?+!M5mwUw;p3pg9JTnFq_+6L*RTHs*nAi?Ld~2&pSsc%7RTA&#VY<&qje7to)i@+;~0LV~2K)QP{ zAS=?O&<#Nqo*(v1A$K*OEY&o$?(Bi9qU5HK*h->+IPwaar)tzp{<$Nh>el9O3kTYl zPklG&+TsxOXwb}cZ^$Lu|D!AaujDKh`Hud58h_hiBb)J`W)4u0QI)Qh1c&?wOTQ)W literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/roses_mod/textures/blocks/flower_rose.png b/src/main/resources/assets/roses_mod/textures/blocks/flower_rose.png new file mode 100644 index 0000000000000000000000000000000000000000..895d78ffdac78b2d4ea9b5d720a1c72a671647fb GIT binary patch literal 355 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6U4Uwm z85k}bMYaG%I14-?iy0WWg+Z8+Vb&Z8pdfpRr>`sfT@Eo$GoBT^3`{_w$DS^ZAr`0K zPBhFrWFXRJ@4jwzhhpZE1FQnt(#GD^oqdwl3aO7-?(Sd|Pdv+Mq#!XvQeu^n%S4%1 z*A-s{IP!>Q-%s27zV_R1-v6cLn(>?KdNl5M*4>!C%qqEQ-NUQS{`Y2iT|38Q5a8z} zJg@NArGiW+#^Yf!)r}51(h1LIz1E(hma?RWLFC<$XRB)uhGd&=`}+3b6tyWT?vHpr z7VcVYxNYmJ