From 36ae8fb3429d31ed6566c3dc35159c0e069eb05d Mon Sep 17 00:00:00 2001 From: FalsePattern <30945458+FalsePattern@users.noreply.github.com> Date: Thu, 17 Mar 2022 22:55:11 +0100 Subject: [PATCH] Rebranding, readme, and credits --- CREDITS | 21 ++++++++++++++++ README.MD | 6 +++++ .../falsepattern/endlessids/EndlessIDs.java | 6 +++++ .../falsepattern/endlessids/IDExtender.java | 25 ------------------- .../com/falsepattern/endlessids/IEConfig.java | 20 +++++---------- src/main/resources/mcmod.info | 6 ++--- 6 files changed, 42 insertions(+), 42 deletions(-) create mode 100644 CREDITS create mode 100644 README.MD create mode 100644 src/main/java/com/falsepattern/endlessids/EndlessIDs.java delete mode 100644 src/main/java/com/falsepattern/endlessids/IDExtender.java diff --git a/CREDITS b/CREDITS new file mode 100644 index 0000000..6445569 --- /dev/null +++ b/CREDITS @@ -0,0 +1,21 @@ +The code is a rewrite of NotEnoughIDs, created by fewizz and Player, +which was released under the MIT license on CurseForge at https://www.curseforge.com/minecraft/mc-mods/notenoughids + +Original License text of NotEnoughIDs: +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/README.MD b/README.MD new file mode 100644 index 0000000..13e7ee9 --- /dev/null +++ b/README.MD @@ -0,0 +1,6 @@ +EndlessIDs is a modern rewrite of NotEnoughIDs which increases the limit even more, up to the maximum 24 bit unsigned integer value. + +| | Vanilla | NotEnoughIDs | EndlessIDs | +|-----------|---------|--------------|------------| +| Block IDs | 4096 | 32000 | 16777216 | +| Item IDs | 32000 | 32000 | 16777216 | \ No newline at end of file diff --git a/src/main/java/com/falsepattern/endlessids/EndlessIDs.java b/src/main/java/com/falsepattern/endlessids/EndlessIDs.java new file mode 100644 index 0000000..dbddd64 --- /dev/null +++ b/src/main/java/com/falsepattern/endlessids/EndlessIDs.java @@ -0,0 +1,6 @@ +package com.falsepattern.endlessids; + +import cpw.mods.fml.common.Mod; + +@Mod(modid = Tags.MODID, name = Tags.MODNAME, version = Tags.VERSION) +public class EndlessIDs {} diff --git a/src/main/java/com/falsepattern/endlessids/IDExtender.java b/src/main/java/com/falsepattern/endlessids/IDExtender.java deleted file mode 100644 index ede3638..0000000 --- a/src/main/java/com/falsepattern/endlessids/IDExtender.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.falsepattern.endlessids; - -import cpw.mods.fml.common.event.FMLPreInitializationEvent; -import cpw.mods.fml.common.Mod; -import cpw.mods.fml.common.registry.GameRegistry; -import net.minecraft.block.Block; -import net.minecraft.block.BlockIce; -import net.minecraft.creativetab.CreativeTabs; - -@Mod(modid = "notenoughIDs", name = "NotEnoughIDs", version = "1.4.3.4") -public class IDExtender -{ - public IDExtender() { - super(); - } - - @Mod.EventHandler - public void test(final FMLPreInitializationEvent event) { -// for(int i = 0; i < 65536; i++){ -// Block shield = new BlockIce().setBlockName(".shield" + i); -// GameRegistry.registerBlock(shield, i + "ShieldBlock"); -// shield.setCreativeTab(CreativeTabs.tabFood); -// } - } -} diff --git a/src/main/java/com/falsepattern/endlessids/IEConfig.java b/src/main/java/com/falsepattern/endlessids/IEConfig.java index ce56dfc..5024f9a 100644 --- a/src/main/java/com/falsepattern/endlessids/IEConfig.java +++ b/src/main/java/com/falsepattern/endlessids/IEConfig.java @@ -3,38 +3,30 @@ package com.falsepattern.endlessids; import java.io.File; import net.minecraftforge.common.config.Configuration; -public class IEConfig -{ +public class IEConfig { static Configuration config; public static boolean catchUnregisteredBlocks; public static boolean removeInvalidBlocks; - public static boolean postNeidWorldsSupport; public static boolean extendDataWatcher; - public IEConfig() { - super(); - } - public static void init(final File file) { File newFile; if (file.getPath().contains("bin")) { - newFile = new File(file.getParent() + "/eclipse/config", "NEID.cfg"); + newFile = new File(file.getParent() + "/eclipse/config", Tags.MODID + ".cfg"); } else { - newFile = new File(file.getParentFile().getParent() + "/config", "NEID.cfg"); + newFile = new File(file.getParentFile().getParent() + "/config", Tags.MODID + ".cfg"); } IEConfig.config = new Configuration(newFile); - IEConfig.catchUnregisteredBlocks = IEConfig.config.getBoolean("CatchUnregisteredBlocks", "NEID", false, ""); - IEConfig.removeInvalidBlocks = IEConfig.config.getBoolean("RemoveInvalidBlocks", "NEID", false, "Remove invalid (corrupted) blocks from the game."); - IEConfig.postNeidWorldsSupport = IEConfig.config.getBoolean("PostNeidWorldsSupport", "NEID", true, "If true, only blocks with IDs > 4095 will disappear after removing NEID."); - IEConfig.extendDataWatcher = IEConfig.config.getBoolean("ExtendDataWatcher", "NEID", false, "Extend DataWatcher IDs. Vanilla limit is 31, new limit is 127."); + IEConfig.catchUnregisteredBlocks = IEConfig.config.getBoolean("CatchUnregisteredBlocks", Tags.MODNAME, false, ""); + IEConfig.removeInvalidBlocks = IEConfig.config.getBoolean("RemoveInvalidBlocks", Tags.MODNAME, false, "Remove invalid (corrupted) blocks from the game."); + IEConfig.extendDataWatcher = IEConfig.config.getBoolean("ExtendDataWatcher", Tags.MODNAME, false, "Extend DataWatcher IDs. Vanilla limit is 31, new limit is 127."); IEConfig.config.save(); } static { IEConfig.catchUnregisteredBlocks = false; IEConfig.removeInvalidBlocks = false; - IEConfig.postNeidWorldsSupport = true; IEConfig.extendDataWatcher = false; } } diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info index 97f1cc4..563737d 100644 --- a/src/main/resources/mcmod.info +++ b/src/main/resources/mcmod.info @@ -2,13 +2,13 @@ { "modid": "${modId}", "name": "${modName}", - "description": "Moar IDs", + "description": "Extends hardcoded block ID limit even more.", "version": "${modVersion}", "mcversion": "${minecraftVersion}", "url": "https://github.com/FalsePattern/EndlessIDs", "updateUrl": "", - "authorList": ["FalsePattern"], - "credits": "", + "authorList": ["fewizz","Player","FalsePattern"], + "credits": "This mod is a modern rewrite of NotEnoughIDs, made by fewizz and Player, which was released under the MIT license.", "logoFile": "", "screenshots": [], "dependencies": []