-
Posts
613 -
Joined
-
Last visited
Everything posted by Bedrock_Miner
-
Yeah, this could work but I found another solution: When the Container is created it adds itself to a list in the TE. When onContainerClosed is called, it removes itself. While containers are in the list, the te fires a newly created update method. This also works in multiplayer
-
Right
-
Of course the TileEntity can check for the Mana but I can't get the container from the TE. I need to update the Container.
-
Heyho Guys! I created a special CraftingTable which consumes some Mana from the player while crafting. I added the Mana as an ExtendedProperty a while ago. Now I recognized that the Mana value of the container of the crafting GUI is only updated when I change something in the Slots (onCraftMatrixChange). But I want it to update every tick to update the crafting when the Player has regenerated enough Mana. How can I achieve this update feature? Which method do I have to override?
-
Entity texture is just a white box. Help
Bedrock_Miner replied to hurleyboarder's topic in Modder Support
This doesnt work because you have not registered the renderer. Or I didnt find the registration in the file. PLEASE STRUCTURE YOUR CODE AND DONT PUT EVERYTHING IN ONE FILE! NO ONE CAN READ THIS! -
[Solved] [1.7.10] Modeling an Item with Metadata
Bedrock_Miner replied to Whyneb360's topic in Modder Support
Of course it has the same texture because you registered both renderers to the same item, thus only one is active. An Item (or anything else) can only have one renderer. You need to create one renderer which is able to switch btw two models, depending on the metadata. -
Heyho Guys! I have some problems figuring out what to do if you have several Mods that implement the same Item or Block. Is there a way to combine these Items that every Mod uses the same? I dont think so. And what about the worldgen? With my current set of mods I have three types of copper ore, everything is full of copper. But everything from different Mods...... I also plan to add one Block to two of my Mods. Can you combine these blocks to a single one if you have both mods installed? If so, how?
-
prevPosXYZ and lastTickPosXYZ don't work for players
Bedrock_Miner replied to Bedrock_Miner's topic in Modder Support
Ok, I added some ExtendedProperties now which track the values but I'm unable to set the Player's Position to the previous Value, the setPosition seems to be ignored. Why? -
[08:26:52] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLServerTweaker [08:26:52] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLServerTweaker [08:26:52] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLServerTweaker [08:26:52] [main/INFO] [FML]: Forge Mod Loader version 7.10.18.1180 for Minecraft 1.7.10 loading [08:26:53] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_10, running on Linux:amd64:3.6.7, installed at /usr/lib/jvm/java-7-oracle/jre [08:26:53] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [08:26:53] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [08:26:53] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [08:26:53] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [08:26:53] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [08:26:55] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557 [08:26:55] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [08:26:55] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [08:26:57] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.server.MinecraftServer} [08:26:59] [server thread/INFO]: Starting minecraft server version 1.7.10 [08:26:59] [server thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [08:26:59] [server thread/INFO] [FML]: MinecraftForge v10.13.0.1180 Initialized [08:27:00] [server thread/INFO] [FML]: Replaced 182 ore recipies [08:27:00] [server thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [08:27:00] [server thread/INFO] [FML]: Searching /home/kd35523/server/minecraft_2031/mods for mods [08:27:00] [server thread/INFO] [FML]: Forge Mod Loader has identified 11 mods to load [08:27:01] [server thread/INFO] [FML]: Processing ObjectHolder annotations [08:27:01] [server thread/INFO] [FML]: Found 341 ObjectHolder annotations [08:27:01] [server thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [08:27:02] [server thread/INFO] [FML]: Extending Potions Array for the mod magicum. [08:27:02] [server thread/INFO] [FML]: Applying holder lookups [08:27:02] [server thread/INFO] [FML]: Holder lookups applied [08:27:02] [server thread/INFO]: Loading properties [08:27:02] [server thread/INFO]: Default game type: SURVIVAL [08:27:02] [server thread/INFO]: Generating keypair [08:27:02] [server thread/INFO]: Starting Minecraft server on minehost69.host-unlimited.de:25670 [08:27:03] [server thread/INFO] [ArchimedesShips]: Reading metarotation file: default.mrot [08:27:03] [server thread/INFO] [FML]: Found not existing Item Name in item_elements.csv! Item: minecraft:slime_block [08:27:03] [server thread/INFO] [FML]: Unknown recipe class! com.bedrockminer.signcraft.crafting.UnmirrorRecipe Modder please refer to net.minecraftforge.oredict.RecipeSorter [08:27:03] [server thread/INFO] [FML]: Forge Mod Loader has successfully loaded 11 mods [08:27:03] [server thread/INFO]: Preparing level "world" [08:27:03] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [08:27:03] [server thread/INFO] [FML]: Applying holder lookups [08:27:04] [server thread/INFO] [FML]: Holder lookups applied [08:27:04] [server thread/INFO] [FML]: Loading dimension 0 (world) (net.minecraft.server.dedicated.DedicatedServer@786d0dda) [08:27:04] [server thread/INFO] [FML]: Loading dimension 1 (world) (net.minecraft.server.dedicated.DedicatedServer@786d0dda) [08:27:04] [server thread/INFO] [FML]: Loading dimension -1 (world) (net.minecraft.server.dedicated.DedicatedServer@786d0dda) [08:27:04] [server thread/INFO]: Preparing start region for level 0 [08:27:05] [server thread/INFO]: Preparing spawn area: 30% [08:27:05] [server thread/INFO]: Done (2,312s)! For help, type "help" or "?" [08:27:05] [server thread/INFO]: Unknown command. Try /help for a list of commands [08:29:32] [user Authenticator #1/INFO]: UUID of player _Bedrock_Miner_ is 79b0a319-92fd-40ca-ba24-c857866ff166 [08:29:32] [server thread/INFO] [FML]: Called Constructing [08:29:32] [Netty IO #3/INFO] [FML]: Client protocol version 1 [08:29:32] [Netty IO #3/INFO] [FML]: Client attempting to join with 12 mods : [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected] v1.7.0,[email protected],[email protected],[email protected],[email protected] [08:29:32] [Netty IO #3/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [08:29:33] [server thread/INFO] [FML]: [server thread] Server side modded connection established [08:29:33] [server thread/INFO]: _Bedrock_Miner_[/84.154.100.67:55262] logged in with entity id 227 at (-536.1634642766006, 84.0, 348.82530851642457) [08:29:33] [server thread/INFO]: _Bedrock_Miner_ joined the game [08:29:33] [server thread/INFO] [FML]: Called Join for _Bedrock_Miner_ [08:29:33] [server thread/ERROR] [FML]: HandshakeCompletionHandler exception java.lang.NullPointerException at java.util.ArrayList.<init>(ArrayList.java:151) ~[?:1.7.0_10] at com.bedrockminer.magicum.extendedproperties.PropertiesElements.getActiveElements(PropertiesElements.java:65) ~[PropertiesElements.class:?] at com.bedrockminer.magicum.extendedproperties.PropertiesElements.updateElements(PropertiesElements.java:84) ~[PropertiesElements.class:?] at com.bedrockminer.magicum.event.handler.EventHandlerExtendedProperties.onEntityJoinWorld(EventHandlerExtendedProperties.java:38) ~[EventHandlerExtendedProperties.class:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler_16_EventHandlerExtendedProperties_onEntityJoinWorld_EntityJoinWorldEvent.invoke(.dynamic) ~[?:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:51) ~[ASMEventHandler.class:?] at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:122) ~[EventBus.class:?] at net.minecraft.world.World.func_72838_d(World.java:1307) ~[ahb.class:?] at net.minecraft.server.management.ServerConfigurationManager.func_72377_c(ServerConfigurationManager.java:288) ~[oi.class:?] at net.minecraft.server.management.ServerConfigurationManager.a(ServerConfigurationManager.java:161) ~[oi.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.completeServerSideConnection(NetworkDispatcher.java:173) ~[NetworkDispatcher.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.completeHandshake(NetworkDispatcher.java:446) ~[NetworkDispatcher.class:?] at cpw.mods.fml.common.network.internal.HandshakeCompletionHandler.channelRead0(HandshakeCompletionHandler.java:17) ~[HandshakeCompletionHandler.class:?] at cpw.mods.fml.common.network.internal.HandshakeCompletionHandler.channelRead0(HandshakeCompletionHandler.java:11) ~[HandshakeCompletionHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [ej.class:?] at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165) [nc.class:?] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659) [MinecraftServer.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:335) [lt.class:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [li.class:?] [08:29:33] [server thread/ERROR] [FML]: There was a critical exception handling a packet on channel FML java.lang.NullPointerException at java.util.ArrayList.<init>(ArrayList.java:151) ~[?:1.7.0_10] at com.bedrockminer.magicum.extendedproperties.PropertiesElements.getActiveElements(PropertiesElements.java:65) ~[PropertiesElements.class:?] at com.bedrockminer.magicum.extendedproperties.PropertiesElements.updateElements(PropertiesElements.java:84) ~[PropertiesElements.class:?] at com.bedrockminer.magicum.event.handler.EventHandlerExtendedProperties.onEntityJoinWorld(EventHandlerExtendedProperties.java:38) ~[EventHandlerExtendedProperties.class:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler_16_EventHandlerExtendedProperties_onEntityJoinWorld_EntityJoinWorldEvent.invoke(.dynamic) ~[?:?] at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:51) ~[ASMEventHandler.class:?] at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:122) ~[EventBus.class:?] at net.minecraft.world.World.func_72838_d(World.java:1307) ~[ahb.class:?] at net.minecraft.server.management.ServerConfigurationManager.func_72377_c(ServerConfigurationManager.java:288) ~[oi.class:?] at net.minecraft.server.management.ServerConfigurationManager.a(ServerConfigurationManager.java:161) ~[oi.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.completeServerSideConnection(NetworkDispatcher.java:173) ~[NetworkDispatcher.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.completeHandshake(NetworkDispatcher.java:446) ~[NetworkDispatcher.class:?] at cpw.mods.fml.common.network.internal.HandshakeCompletionHandler.channelRead0(HandshakeCompletionHandler.java:17) ~[HandshakeCompletionHandler.class:?] at cpw.mods.fml.common.network.internal.HandshakeCompletionHandler.channelRead0(HandshakeCompletionHandler.java:11) ~[HandshakeCompletionHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[MessageToMessageDecoder.class:?] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) ~[DefaultChannelPipeline.class:?] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:?] at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [ej.class:?] at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165) [nc.class:?] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659) [MinecraftServer.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:335) [lt.class:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [li.class:?] [08:29:33] [server thread/WARN]: Failed to handle packet for /84.154.100.67:55262 java.lang.NullPointerException at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:101) ~[FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) ~[ej.class:?] at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165) [nc.class:?] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659) [MinecraftServer.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:335) [lt.class:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [li.class:?] [08:29:33] [server thread/INFO]: _Bedrock_Miner_ lost connection: TextComponent{text='Internal server error', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}} [08:29:33] [server thread/INFO]: _Bedrock_Miner_ left the game
-
Heyho Guys! I created a extendedProperties class. When an EntityConstructingEvent is fired for a player, these properties are assigned to him. While initializing the properties, a array list is created. When an EntityJoinWorldEvent is then fired for the player, an update package is sent to the client side. This works fine on a Server started by Eclipse. But the compiled mod on a server crashes because the array list is null. Why can this happen?! The EntityConstructing is fired before and had no errors.
-
Heyho Guys! I spend some time creating an entity which detects other entities flying through a diagonal surface; works fine. The algorithm checks for the last tick position and the actual position and executes an action if the surface is passed. The only problem is the player: his values for prevPosX/Y/Z and lastTickPosX/Y/Z are always the same as its actual position. How can I get the players movement since the last tick?
-
OK, I have now fixed the bug! The problem was that the velocity of the player is controlled on both client and server side. I added a packet which sends the actual velocity of the player to the client side and writes it into Minecraft.thePlayer. This finally works as I expect it. By the way, the same thig is also done in the explosions.
-
Heyho Guys! I have a rather complicate question here: Why can't you change the motion of a creative mode player withe the motionX/Y/Z variable? If I try to change this value, the players movement doesn't change. How can you achieve that it does change? What I want to create is basically a method to shoot entities up into the air. This works for every Entity (ok, i didn't try Enderdragon and Wither) except for Players in creative mode. How can I fix this? There must be a way!
-
Heyho Guys! I created some armour which should give the player (or Mob) which is wearing it a health boost. The problem is: If I use the potion Effect to manage this, the extra hearts never regenerate because they are resetted if I re-apply the potion effect every Tick. How can I fix this issue to create an armour that increases your maximum health?
-
Probably a beginner question, but: How do you break a block properly so that it drops its Items as if a player destroyed it? Can't figure out which code to use.
-
Declare Mod as Singleplayer only in 1.8
Bedrock_Miner replied to Bedrock_Miner's topic in Modder Support
Ok, thank you.