Jump to content

DPaulModz

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

DPaulModz's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hello, I have run into another small problem. I tried programming my own custom model for my armor (currently only for a helmet), but it gets render bad. It just takes the whole texture defined and "glues" it onto the model, even though I have defined texture offsets and boundaries. Plz help. The code for the model: package com.dpaul.mod.item.armor.model; import com.mojang.blaze3d.matrix.MatrixStack; import com.mojang.blaze3d.vertex.IVertexBuilder; import net.minecraft.client.renderer.entity.model.BipedModel; import net.minecraft.client.renderer.model.ModelRenderer; import net.minecraft.entity.LivingEntity; /** * ModelCopperHelmet - DPaulModz Created using Tabula 7.1.0 */ public class CopperHelmetModel extends BipedModel<LivingEntity> { public ModelRenderer shape15; public ModelRenderer shape16; public ModelRenderer shape17; public ModelRenderer shape18; public ModelRenderer shape19; public CopperHelmetModel(float size) { super(size); this.textureWidth = 128; this.textureHeight = 128; this.shape18 = new ModelRenderer(this, 68, 32); this.shape18.setRotationPoint(-4.0F, -8.0F, 4.0F); this.shape18.addBox(-4F, -8F, 4F, 8, 8, 0.5F, size); this.shape16 = new ModelRenderer(this, 18, 32); this.shape16.setRotationPoint(4.0F, -8.0F, -4.0F); this.shape16.addBox(4F, -8F, -4F, 0.5F, 8, 8, size); this.shape15 = new ModelRenderer(this, 0, 32); this.shape15.setRotationPoint(-4.5F, -8.0F, -4.0F); this.shape15.addBox(-4.5F, -8F, -4F, 0.5F, 8, 8, size); this.shape17 = new ModelRenderer(this, 36, 32); this.shape17.setRotationPoint(-4.0F, -8.5F, -4.0F); this.shape17.addBox(-4F, -8.5F, -4F, 8, 0.5F, 8, size); this.shape19 = new ModelRenderer(this, 86, 32); this.shape19.setRotationPoint(-4.0F, -8.0F, -4.5F); this.shape19.addBox(-4F, -8F, -4.5F, 8, 8, 0.5F, size); this.bipedHead.addChild(shape15); this.bipedHead.addChild(shape16); this.bipedHead.addChild(shape17); this.bipedHead.addChild(shape18); this.bipedHead.addChild(shape19); } @Override public void render(MatrixStack matrixStackIn, IVertexBuilder bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) { super.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, red, green, blue, alpha); } /** * This is a helper function from Tabula to set the rotation of model parts */ public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) { modelRenderer.rotateAngleX = x; modelRenderer.rotateAngleY = y; modelRenderer.rotateAngleZ = z; } } The code for the helmet: package com.dpaul.mod.item.armor; import javax.annotation.Nullable; import com.dpaul.mod.Main; import com.dpaul.mod.item.armor.model.CopperHelmetModel; import net.minecraft.client.renderer.entity.model.BipedModel; import net.minecraft.entity.Entity; import net.minecraft.entity.LivingEntity; import net.minecraft.inventory.EquipmentSlotType; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; public class CopperHelmet extends ArmorItemBase { public CopperHelmet() { super("copper_helmet", ArmorMaterial.COPPER, EquipmentSlotType.HEAD, new Item.Properties().group(Main.tutorial_item_group)); } @SuppressWarnings("unchecked") @Nullable @Override public <A extends BipedModel<?>> A getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlotType armorSlot, A _default) { CopperHelmetModel model = new CopperHelmetModel(1F); model.bipedHeadwear.showModel = armorSlot == EquipmentSlotType.HEAD; model.isChild = _default.isChild; model.isSneak = _default.isSneak; model.isSitting = _default.isSitting; model.rightArmPose = _default.rightArmPose; model.leftArmPose = _default.leftArmPose; return (A) model; } @Override public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, String type) { return "tutorialmod:textures/models/armor/copper_helmet_overlay.png"; } } Image of the rendered model attached.
  2. Hello, I have run into a small problem. The FORGE documentary points to this function in the Item class: setHasSubtypes(boolean) , ...but I can't find it in the new 1.15.2 FORGE, even though I have the newest mapping. Has the name changed, or has it been totally removed? Plz help.
  3. Thx very much, I'll give it a try with the newer versions.
  4. Hello, I'm DPaul. I wanted program mods for Minecraft 1.14.4, but for reasons the launching of runClient.launch crashes when run. I've tried figuring out what the cause or the root of the problem may be, yet couldn't find any solution. I've attached the crash logs and output with this message. I hope you may help me with this issue. Console text in Eclipse, run in Java 8 JDK (openjdk8; Kubuntu, latest version): 2020-02-02 02:23:07,048 main WARN Advanced terminal features are not available in this environment [02:23:07] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20190829.143755, --fml.mcVersion, 1.14.4, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 28.1.0, --version, MOD_DEV, --assetIndex, 1.14, --assetsDir, /home/donatopaulthayalan/.gradle/caches/forge_gradle/assets, --username, Dev, --accessToken, ❄❄❄❄❄❄❄❄, --userProperties, {}] [02:23:07] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 3.2.0+60+b86c1d4 starting: java version 1.8.0_242 by Private Build [02:23:07] [main/DEBUG] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,fmldevdata,fmldevclient,fmldevserver,fmluserdevserver,testharness,fmluserdevdata,fmlclient,fmluserdevclient,fmlserver] [02:23:07] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [srgtomcp] [02:23:07] [main/DEBUG] [cp.mo.mo.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [eventbus,object_holder_definalize,runtime_enum_extender,accesstransformer,capability_inject_definalize,runtimedistcleaner] [02:23:07] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Discovering transformation services [02:23:07] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Found additional transformation services from discovery services: [] [02:23:07] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Found transformer services : [fml] [02:23:07] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services loading [02:23:07] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loading service fml [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/]: Injecting tracing printstreams for STDOUT/STDERR. [02:23:07] [main/DEBUG] [ne.mi.fm.lo.LauncherVersion/CORE]: Found FMLLauncher version 28.1 [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML 28.1 loading [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found ModLauncher version : 3.2.0+60+b86c1d4 [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Initializing modjar URL handler [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found AccessTransformer version : 1.0.0+45+b99295a [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found EventBus version : 1.0.0+54+3f83a9e [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Found Runtime Dist Cleaner [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found CoreMod version : 1.0.0+4+e6fed88 [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Found ForgeSPI package implementation version 1.3.0+4+934b64a [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Found ForgeSPI package specification 3 [02:23:07] [main/INFO] [ne.mi.fm.lo.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [02:23:07] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loaded service fml [02:23:07] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Configuring option handling for services [02:23:07] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services initializing [02:23:07] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service fml [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Setting up basic FML game directories [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Found existing GAMEDIR directory : /home/donatopaulthayalan/eclipse-workspace/mfprg/TutorialMod_1.14.4/run [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path GAMEDIR is /home/donatopaulthayalan/eclipse-workspace/mfprg/TutorialMod_1.14.4/run [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Making MODSDIR directory : /home/donatopaulthayalan/eclipse-workspace/mfprg/TutorialMod_1.14.4/run/mods [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Created MODSDIR directory : /home/donatopaulthayalan/eclipse-workspace/mfprg/TutorialMod_1.14.4/run/mods [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path MODSDIR is /home/donatopaulthayalan/eclipse-workspace/mfprg/TutorialMod_1.14.4/run/mods [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Making CONFIGDIR directory : /home/donatopaulthayalan/eclipse-workspace/mfprg/TutorialMod_1.14.4/run/config [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FileUtils/CORE]: Created CONFIGDIR directory : /home/donatopaulthayalan/eclipse-workspace/mfprg/TutorialMod_1.14.4/run/config [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path CONFIGDIR is /home/donatopaulthayalan/eclipse-workspace/mfprg/TutorialMod_1.14.4/run/config [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path FMLCONFIG is /home/donatopaulthayalan/eclipse-workspace/mfprg/TutorialMod_1.14.4/run/config/fml.toml [02:23:07] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Loading configuration Exception in thread "main" [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.ExceptionInInitializerError [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at sun.nio.fs.LinuxFileSystem.newWatchService(LinuxFileSystem.java:47) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at com.electronwill.nightconfig.core.file.FileWatcher$WatchedDir.<init>(FileWatcher.java:218) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at com.electronwill.nightconfig.core.file.FileWatcher$WatchedDir.<init>(FileWatcher.java:210) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at com.electronwill.nightconfig.core.file.FileWatcher.lambda$addWatch$0(FileWatcher.java:81) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at com.electronwill.nightconfig.core.file.FileWatcher.addWatch(FileWatcher.java:81) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at com.electronwill.nightconfig.core.file.FileWatcher.addWatch(FileWatcher.java:69) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at com.electronwill.nightconfig.core.file.AutoreloadFileConfig.<init>(AutoreloadFileConfig.java:18) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at com.electronwill.nightconfig.core.file.GenericBuilder.build(GenericBuilder.java:242) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.FMLConfig.loadFrom(FMLConfig.java:56) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.FMLConfig.load(FMLConfig.java:69) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.FMLServiceProvider.initialize(FMLServiceProvider.java:71) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformationServiceDecorator.onInitialize(TransformationServiceDecorator.java:67) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformationServicesHandler.lambda$initialiseTransformationServices$7(TransformationServicesHandler.java:106) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.util.HashMap$Values.forEach(HashMap.java:981) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformationServicesHandler.initialiseTransformationServices(TransformationServicesHandler.java:106) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:59) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.run(Launcher.java:75) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:101) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: java.lang.NullPointerException [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.Runtime.loadLibrary0(Runtime.java:871) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.System.loadLibrary(System.java:1124) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.nio.fs.LinuxWatchService$1.run(LinuxWatchService.java:462) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.nio.fs.LinuxWatchService$1.run(LinuxWatchService.java:460) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.security.AccessController.doPrivileged(Native Method) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.nio.fs.LinuxWatchService.<clinit>(LinuxWatchService.java:460) [02:23:07] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: ... 20 more latest.logdebug.log
  5. Umm...one more question, how to register models for blocks?
  6. Hi, guys! I am learning programming with Forge, and I have a problem...? In the old Forge versions, I used GameRegistry.register... methods to register blocks/items, but I am a noob on programming with the new Forge 1.12.2 (Recommended Version). Pls help me. EDIT: I researched and found out that we have to use a RegistryEvent.register<T> method..., but how?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.