-
Posts
180 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MSpace-Dev
-
Hey all, I'm trying to get my custom model to display multiple bounding boxes. I;ve managed to set up the collision correctly, but I'm not sure how to display these collision boxes. Here is my code so far. private static final AxisAlignedBB PILLAR0 = new AxisAlignedBB(0.875D, 0.0D, 0.875D, 1.03125D, 1.09375D, 1.03125D); private static final AxisAlignedBB PILLAR1 = new AxisAlignedBB(0.96875D, 1.0625D, 0.96875D, 1.09375D, 1.1875D, 1.09375D); private static final AxisAlignedBB PILLAR2 = new AxisAlignedBB(1.0625D, 1.125D, 1.0625D, 1.15625D, 1.3125D, 1.15625D); private static final AxisAlignedBB PILLAR3 = new AxisAlignedBB(1.0D, 1.28125D, 1.0625D, 1.09375D, 1.4375D, 1.15625D); private static final AxisAlignedBB PILLAR4 = new AxisAlignedBB(0.96875D, 1.40625D, 1.03125D, 1.03125D, 1.5625D, 1.09375D); @Override public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, @Nullable Entity entityIn, boolean p_185477_7_) { for (AxisAlignedBB axisAlignedBB : getCollisionBoxes()) { addCollisionBoxToList(pos,entityBox, collidingBoxes, axisAlignedBB); } } private List<AxisAlignedBB> getCollisionBoxes() { List<AxisAlignedBB> bounding_boxes = new ArrayList<>(); bounding_boxes.add(PILLAR0); bounding_boxes.add(PILLAR1); bounding_boxes.add(PILLAR2); bounding_boxes.add(PILLAR3); bounding_boxes.add(PILLAR4); return bounding_boxes; }
-
I see it's called capNBT. What is that exactly?
-
Hey all, I'm trying to put all my spawn eggs in my mod's creative tab. Here's the code. public static final CreativeTabs creativeTab = new CreativeTabs(CreativeTabs.getNextID(), "modid") { @Override public ItemStack getTabIconItem() { return new ItemStack(ModBlocks.block); } @Override @SideOnly(Side.CLIENT) public void displayAllRelevantItems(NonNullList<ItemStack> itemList) { super.displayAllRelevantItems(itemList); itemList.add(new ItemStack(Items.SPAWN_EGG, 1, 0, getSpawnEggNBT("mod_entity"))); } }; private static NBTTagCompound getSpawnEggNBT(String name) { NBTTagCompound base = new NBTTagCompound(); base.setString("id", "modid:" + name); NBTTagCompound nbt = new NBTTagCompound(); nbt.setTag("EntityTag", base); return nbt; } The spawn egg is displayed in my creative tab, however, there is no NBT on the item. Pretty sure I'm screwing up the getSpawnEggNBT() method. Thanks. I need my NBT to look like this {EntityTag:{id:"modid:mod_entity"}}
-
My transparent entity renders fire terribly
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
Hmm, so looked into this a bit more. Didn't really find much. However, if there was a way that I could control how the fire renders separately to the mob, that'd be nice. Unable to find something like that though. How deep would I have to go to resolve an issue like this? -
Hey all, So I have made a transparent entity by overriding the doRender() method. However, this has made the fire render terribly. Is there any workarounds for this? Here is the code I am using to make the mob transparent. @Override public void doRender(AbstractSkeleton entity, double x, double y, double z, float entityYaw, float partialTicks) { GlStateManager.pushMatrix(); GlStateManager.enableAlpha(); GlStateManager.enableBlend(); GlStateManager.color(1.0F, 1.0F, 1.0F, 0.4F); super.doRender(entity, x, y, z, entityYaw, partialTicks); GlStateManager.color(1.0F, 1.0F, 1.0F, 1F); GlStateManager.disableAlpha(); GlStateManager.disableBlend(); GlStateManager.popMatrix(); }
-
(SOLVED) [1.11.2] Create cooldown for onBlockActivated
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
Ah, that worked. Thanks for the improvements. TileEntity init works and cooldown is now running using getTotalWorldTime() on the TileEntity. -
(SOLVED) [1.11.2] Create cooldown for onBlockActivated
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
Yeah, I will use the tile entity for that too, thanks. Btw, trying the new TileEntity init method. This isn't working. How would I do this exactly? @Nullable @Override public TileEntity createTileEntity(World world, IBlockState state) { return new TileEntityBlock(); } @Override public boolean hasTileEntity() { return true; } Also tried to call createTileEnity() in the onBlockAdded() method. -
(SOLVED) [1.11.2] Create cooldown for onBlockActivated
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
I already stated that int i was for testing purposes in the code. I am not storing the cooldown in the block class. I understand they are singleton-like. The int was just to confirm it was working. As for the tile entity creation, I will apply that. -
(SOLVED) [1.11.2] Create cooldown for onBlockActivated
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
Solved it. Had to scheduleUpdate(). Here is the revised code: public class BlockExample extends BlockMod implements ITileEntityProvider{ // For testing purposes private int i; public BlockExample(String name, Material materialIn) { super(name, materialIn); } @Nullable @Override public TileEntity createNewTileEntity(World worldIn, int meta) { return new TileEntityBlockExample(); } @Override public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state) { this.updateTick(worldIn, pos, state, worldIn.rand); super.onBlockAdded(worldIn, pos, state); } @Override public void updateTick(World worldIn, BlockPos pos, IBlockState state, Random rand) { Utils.getLogger().info(++i); worldIn.scheduleUpdate(pos, this, 1); // <<-- This is important! super.updateTick(worldIn, pos, state, rand); } } -
You can use this: player.getHeldItem(hand).damageItem(1, player); In onItemUse()
-
(SOLVED) [1.11.2] Create cooldown for onBlockActivated
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
Posted code. -
Hey all, I'm trying to make the code in onBlockActivated to only run when a cooldown reaches 0. I've seen there is randomTick, updateTick, etc. However, I cannot get them to work. public class BlockMod extends ModBlock implements ITileEntityProvider{ public BlockMod(String name, Material materialIn) { super(name, materialIn); this.setTickRandomly(false); } @Nullable @Override public TileEntity createNewTileEntity(World worldIn, int meta) { return new TileEntityBlockMod(); } @Override public int tickRate(World worldIn) { return 1; } @Override public void updateTick(World worldIn, BlockPos pos, IBlockState state, Random random) { Utils.getLogger().info("tick"); super.randomTick(worldIn, pos, state, random); } }
-
(SOLVED) [1.11.2] Running my mod on server causes crash
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
I will update soon. Just finishing up the mod for 1.11.2. (Started it in 2017, came back now). Then going to update to later versions. Thanks for the correction. -
(SOLVED) [1.11.2] Running my mod on server causes crash
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
Just had to go to sleep. Woke up and figured it out almost instantly haha. I have custom particles in my mod. Where the TextureStitchEvent.Pre Subscribe Event gets called to register the particles, I just had to add the annotation @SideOnly(Side.CLIENT) -
Hey all, So, trying to get my mod to function on a server. It has something to do with trying to load a TextureMap on the server side. 2019-07-01 01:56:13,302 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2019-07-01 01:56:13,303 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [01:56:13] [main/INFO] [GradleStart]: Extra: [] [01:56:13] [main/INFO] [GradleStart]: Running with arguments: [--tweakClass, net.minecraftforge.fml.common.launcher.FMLServerTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [01:56:13] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker [01:56:13] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker [01:56:13] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [01:56:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker [01:56:14] [main/INFO] [FML]: Forge Mod Loader version 13.20.1.2530 for Minecraft 1.11.2 loading [01:56:14] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_191, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_191\jre [01:56:14] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [01:56:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [01:56:14] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [01:56:14] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [01:56:14] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [01:56:14] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [01:56:14] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [01:56:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [01:56:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [01:56:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [01:56:15] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [01:56:16] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [01:56:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [01:56:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [01:56:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [01:56:16] [main/INFO] [GradleStart]: Remapping AccessTransformer rules... [01:56:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [01:56:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [01:56:16] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.server.MinecraftServer} [01:56:19] [Server thread/INFO]: Starting minecraft server version 1.11.2 [01:56:19] [Server thread/INFO] [FML]: MinecraftForge v13.20.1.2530 Initialized [01:56:19] [Server thread/INFO] [FML]: Replaced 232 ore recipes [01:56:19] [Server thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [01:56:19] [Server thread/INFO] [FML]: Searching E:\Repositories\MonsterTotems\Monster Totems\run\mods for mods [01:56:20] [Server thread/INFO] [FML]: Forge Mod Loader has identified 6 mods to load [01:56:21] [Server thread/WARN] [FML]: Missing English translation for minecraft: minecraft.jar (The system cannot find the file specified) java.io.FileNotFoundException: minecraft.jar (The system cannot find the file specified) at java.util.zip.ZipFile.open(Native Method) ~[?:1.8.0_191] at java.util.zip.ZipFile.<init>(ZipFile.java:225) ~[?:1.8.0_191] at java.util.zip.ZipFile.<init>(ZipFile.java:155) ~[?:1.8.0_191] at java.util.zip.ZipFile.<init>(ZipFile.java:169) ~[?:1.8.0_191] at net.minecraftforge.fml.server.FMLServerHandler.addModAsResource(FMLServerHandler.java:258) [FMLServerHandler.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.addModToResourcePack(FMLCommonHandler.java:539) [FMLCommonHandler.class:?] at net.minecraftforge.fml.common.LoadController.buildModList(LoadController.java:130) [LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:338) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:557) [Loader.class:?] at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99) [FMLServerHandler.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:332) [FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:124) [DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:508) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191] [01:56:21] [Server thread/WARN] [FML]: Missing English translation for mcp: minecraft.jar (The system cannot find the file specified) java.io.FileNotFoundException: minecraft.jar (The system cannot find the file specified) at java.util.zip.ZipFile.open(Native Method) ~[?:1.8.0_191] at java.util.zip.ZipFile.<init>(ZipFile.java:225) ~[?:1.8.0_191] at java.util.zip.ZipFile.<init>(ZipFile.java:155) ~[?:1.8.0_191] at java.util.zip.ZipFile.<init>(ZipFile.java:169) ~[?:1.8.0_191] at net.minecraftforge.fml.server.FMLServerHandler.addModAsResource(FMLServerHandler.java:258) [FMLServerHandler.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.addModToResourcePack(FMLCommonHandler.java:539) [FMLCommonHandler.class:?] at net.minecraftforge.fml.common.LoadController.buildModList(LoadController.java:130) [LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:338) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:557) [Loader.class:?] at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99) [FMLServerHandler.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:332) [FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:124) [DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:508) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191] [01:56:21] [Server thread/WARN] [FML]: Missing English translation for FML: assets/fml/lang/en_us.lang java.io.FileNotFoundException: assets/fml/lang/en_us.lang at net.minecraftforge.fml.server.FMLServerHandler.addModAsResource(FMLServerHandler.java:261) [FMLServerHandler.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.addModToResourcePack(FMLCommonHandler.java:539) [FMLCommonHandler.class:?] at net.minecraftforge.fml.common.LoadController.buildModList(LoadController.java:130) [LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:338) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:557) [Loader.class:?] at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99) [FMLServerHandler.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:332) [FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:124) [DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:508) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191] [01:56:21] [Server thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, monstertotems, jei] at CLIENT [01:56:21] [Server thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, monstertotems, jei] at SERVER [01:56:21] [Server thread/FATAL] [FML]: Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue [01:56:21] [Server thread/FATAL] [FML]: States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UC minecraft{1.11.2} [Minecraft] (minecraft.jar) UC mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UC FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.1.2530.jar) UC forge{13.20.1.2530} [Minecraft Forge] (forgeSrc-1.11.2-13.20.1.2530.jar) UE monstertotems{[1.10.2]} [Monster Totems] (Monster_Totems.main) UC jei{4.5.1.296} [Just Enough Items] (jei_1.11.2-4.5.1.296.jar) [01:56:21] [Server thread/FATAL] [FML]: The following problems were captured during this phase [01:56:21] [Server thread/ERROR] [FML]: Caught exception from monstertotems (java.lang.NoClassDefFoundError: net/minecraft/client/renderer/texture/TextureMap) [01:56:21] [Server thread/ERROR]: Encountered an unexpected exception net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Monster Totems (monstertotems) Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/texture/TextureMap at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:1.8.0_191] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) ~[?:1.8.0_191] at java.lang.Class.getConstructor0(Class.java:3075) ~[?:1.8.0_191] at java.lang.Class.getConstructor(Class.java:1825) ~[?:1.8.0_191] at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:129) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:113) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraftforge.fml.common.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:83) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:627) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:253) ~[LoadController.class:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:231) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:148) ~[LoadController.class:?] at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:582) ~[Loader.class:?] at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99) ~[FMLServerHandler.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:332) ~[FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:124) ~[DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:508) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191] Caused by: java.lang.ClassNotFoundException: net.minecraft.client.renderer.texture.TextureMap at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_191] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_191] at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:1.8.0_191] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) ~[?:1.8.0_191] at java.lang.Class.getConstructor0(Class.java:3075) ~[?:1.8.0_191] at java.lang.Class.getConstructor(Class.java:1825) ~[?:1.8.0_191] at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:129) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:113) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraftforge.fml.common.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:83) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:627) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:253) ~[LoadController.class:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:231) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:148) ~[LoadController.class:?] at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:582) ~[Loader.class:?] at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99) ~[FMLServerHandler.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:332) ~[FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:124) ~[DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:508) ~[MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_191] Caused by: net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerException: Exception in class transformer net.minecraftforge.fml.common.asm.transformers.SideTransformer@263f04ca from coremod FMLCorePlugin at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:257) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_191] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_191] at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:1.8.0_191] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) ~[?:1.8.0_191] at java.lang.Class.getConstructor0(Class.java:3075) ~[?:1.8.0_191] at java.lang.Class.getConstructor(Class.java:1825) ~[?:1.8.0_191] at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:129) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:113) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraftforge.fml.common.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:83) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:627) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:253) ~[LoadController.class:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:231) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:148) ~[LoadController.class:?] at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:582) ~[Loader.class:?] at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99) ~[FMLServerHandler.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:332) ~[FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:124) ~[DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:508) ~[MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_191] Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/renderer/texture/TextureMap for invalid side SERVER at net.minecraftforge.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:62) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:253) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_191] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_191] at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:1.8.0_191] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) ~[?:1.8.0_191] at java.lang.Class.getConstructor0(Class.java:3075) ~[?:1.8.0_191] at java.lang.Class.getConstructor(Class.java:1825) ~[?:1.8.0_191] at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:129) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:113) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraftforge.fml.common.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:83) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:627) ~[forgeSrc-1.11.2-13.20.1.2530.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:253) ~[LoadController.class:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:231) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:148) ~[LoadController.class:?] at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:582) ~[Loader.class:?] at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99) ~[FMLServerHandler.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:332) ~[FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:124) ~[DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:508) ~[MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_191] [01:56:21] [Server thread/ERROR]: This crash report has been saved to: E:\Repositories\MonsterTotems\Monster Totems\run\.\crash-reports\crash-2019-07-01_01.56.21-server.txt [01:56:21] [Server thread/INFO]: Stopping server [01:56:21] [Server thread/INFO]: Saving worlds [01:56:21] [Server thread/WARN] [FML]: Can't revert to frozen GameData state without freezing first. [01:56:21] [Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED. Errors may have been discarded. [01:56:21] [Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state AVAILABLE. Errors may have been discarded. [01:56:21] [Server Shutdown Thread/INFO]: Stopping server [01:56:21] [Server Shutdown Thread/INFO]: Saving worlds > Process finished with exit code 0 EDIT: I am running the server straight out of IntelliJ. Are there any other steps? Been developing the mod solely on Clientside the whole time. Decided to test the server only now.
-
[1.11.2] Spawn Custom Entity in world from subscribe event
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
Ah, found it. Thanks for all the help -
[1.11.2] Spawn Custom Entity in world from subscribe event
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
Ah, interesting. Guess I'll use the latter then. Any idea about the above issue? Can't find a method that returns floating point values. -
[1.11.2] Spawn Custom Entity in world from subscribe event
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
Actually, still having an issue. Since the position of the target only is returned as an int, and not a float. The entity spawns aligned to the grid, rather at the exact location. Also, the rotation of the entity is not applied. EntitySpiritCreeper creeper = new EntitySpiritCreeper(event.getWorld()); creeper.setPositionAndRotation(event.getTarget().getPosition().getX(), event.getTarget().getPosition().getY(), event.getTarget().getPosition().getZ(), event.getTarget().rotationYaw, event.getTarget().rotationPitch); event.getWorld().spawnEntity(creeper); Excuse the long line of code. Going to refactor soon. I tried with both methods btw. -
[1.11.2] Spawn Custom Entity in world from subscribe event
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
Thanks, worked perfectly. However, I used setRotationAndPosition() instead. For interest sake: What's the difference? They look the same, so I assume it's just a refactor -
Hey all, I am trying to spawn one of my entities in the world when a player right clicks on a creeper (for now) @SubscribeEvent public void interactEntity(PlayerInteractEvent.EntityInteract event) { if(event.getTarget().getClass().equals(EntityCreeper.class)) { Utils.getlogger.info("Creeper clicked"); event.getWorld().spawnEntity(new EntitySpiritCreeper(event.getWorld())); } } Note, the message does get logged. So the check up to the point of spawning code does work. Nothing is spawning. However, I feel like I should be able to enter more parameters, like location and such. Thanks in advance.
-
(Solved) Execution failed for task ':decompileMc' Issue
MSpace-Dev replied to Ruthless_bug13's topic in ForgeGradle
You simply create a file, make the extension .bat, paste the code then double click to run -
[1.11] Adding a potion effect to a player
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
Ah, simple enough. Thanks for the info! -
[1.11] Adding a potion effect to a player
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
@xwerswoodx As I said, I went to go look through the code, already figured that out, but thanks =p @Draco18s What would you use instead of hardcoded IDs? The only code I found that used to give the potion effect used the IDs. Care to share an example that doesn't use them? -
(Solved) Execution failed for task ':decompileMc' Issue
MSpace-Dev replied to Ruthless_bug13's topic in ForgeGradle
Care to share? It'll help others that might be having the same problem. Post what you did! -
[1.11] Adding a potion effect to a player
MSpace-Dev replied to MSpace-Dev's topic in Modder Support
I was going to do that, but I was going out for the day, and decided to post a question instead. When I get home I'll just do it, was hoping I could just jump right into it when I get home later today