Jump to content

Durtle02

Members
  • Posts

    59
  • Joined

  • Last visited

Everything posted by Durtle02

  1. For my block. As an example imagine you have a block that will place a block of the same type above it on a random tick. Then you have another block next to it that will do that but 5 times faster.
  2. Random tick updates.
  3. I wanted to make it so one updateTick runs 4-5 times faster than the normal updateTick.
  4. So what is the method signature?
  5. method does not override or implement a method from a supertype This is the error I get when I put the Override there.
  6. Also one last thing, I still don't understand why my method for players clicking on the block isn't working. Could someone give me a correction of the code? public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, @Nullable ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ){}
  7. Yes I'm currently working with 1.11
  8. How do I make this if it isn't equal to air? if (worldIn.isAirBlock(pos.up())){} I have this but it doesn't seem to work. Is there a different block declaration or do I need to test for both air and null? world.getBlockState(positionNumber)!=Blocks.AIR
  9. So what does the @Override tell you? The random tick is working (Thank you) but the player activation still isn't. @Override boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, @Nullable ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ){ BlockPos pos0 = new BlockPos(pos.getX(), (pos.getY()+1) , pos.getZ()); worldIn.setBlockState(pos0, ModBlocks.gooblock.getDefaultState()); return false;} It is okay with the code without the @Override but it doesn't like it with the override. (I'm using NetBeans 8.2)
  10. Any ideas of what's wrong? None of the block changes are happening. Current Code: package TestMod.tutorial.block; import javax.annotation.Nullable; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; public class GooBlock extends BlockBase{ public GooBlock(String name){ super(Material.ROCK, name); setTickRandomly(true); setHardness(0f); setResistance(1f); } @Override public GooBlock setCreativeTab(CreativeTabs tab){ super.setCreativeTab(tab); return this; } public void updateTick(World worldIn, BlockPos pos){ BlockPos pos0 = new BlockPos(pos.getX(), (pos.getY()+1) , pos.getZ()); worldIn.setBlockState(pos0, ModBlocks.gooblock.getDefaultState()); } public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, @Nullable ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ){ BlockPos pos0 = new BlockPos(pos.getX(), (pos.getY()+1) , pos.getZ()); worldIn.setBlockState(pos0, ModBlocks.gooblock.getDefaultState()); return false;} }
  11. public GooBlock(String name){ super(Material.ROCK, name); setTickRandomly(true); setHardness(0f); setResistance(1f); } It was in there. I tried adding the this. but it still didn't work.
  12. How do I specify for it to receive random ticks?
  13. In game nothing happens. The code should be working right?
  14. Hello. I'm trying to make a block where on random ticks it will grow upwards(for now), like reeds. Also it is supposed to grow upwards on player activation. I have somewhat of a clue how to to this and the current code I have isn't working. The block is registering in game and the name, texture, and creative tab are all working. package TestMod.tutorial.block; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; public class GooBlock extends BlockBase{ public GooBlock(String name){ super(Material.ROCK, name); setTickRandomly(true); setHardness(0f); setResistance(1f); } @Override public GooBlock setCreativeTab(CreativeTabs tab){ super.setCreativeTab(tab); return this; } public void updateTick(World worldIn, BlockPos pos){ BlockPos pos0 = new BlockPos(pos.getX(), (pos.getY()+1) , pos.getZ()); worldIn.setBlockState(pos0, ModBlocks.gooblock.getDefaultState()); } public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumFacing side, float hitX, float hitY, float hitZ){ BlockPos pos0 = new BlockPos(pos.getX(), (pos.getY()+1) , pos.getZ()); worldIn.setBlockState(pos0, ModBlocks.gooblock.getDefaultState()); return false;} } Thanks for the help.
  15. It's not showing for me. I have a forge environment setup in NetBeans 8.2 and can't see any sort of vanilla MC class files.
  16. Where is it located?
  17. I'm wondering how to find specific Minecraft class files. In the jar they all have names like aox.class and bbi.class So how do I know what's what? (Specifically sugarcane)
  18. Put it as you personal text.
  19. Thanks Also how do I update at a random rate?
  20. I've seen people doing it with xyz being variables and they could test using those. Does that require a specific handmade script of is it prebuilt in?
  21. Hi again, I'm wondering how to test if surrounding blocks are not "air" or "BlockA" then set them to "BlockA" in a random time interval. EDIT: I saw a previous post. I'm looking for a way with coords.
  22. Hello, I was wondering how it works when two mods have an item, such as a copper ingot, and the crafting recipes work interchangeably. (Also while writing this I spelled "recipes" wrong and tried to do an Alt+Enter to fix it because I use NetBeans )
  23. Nevermind. Thanks for the help everyone!!! One last question. In game it's currently called item.ingotcopper.name How do I fix that?
  24. Okay I'm getting different errors, that's good. Also now in game its a flat black and purple texture instead of a block black and purple texture. Here's the error Time: 11/20/16 12:06 PM Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.11 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_111, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 798326528 bytes (761 MB) / 968359936 bytes (923 MB) up to 4293394432 bytes (4094 MB) JVM Flags: 0 total; IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '3.3.11672 Compatibility Profile Context' Renderer: 'ATI Radeon HD 4800 Series' [12:06:21] [Client thread/INFO] [FML]: MinecraftForge v13.19.0.2146 Initialized [12:06:21] [Client thread/INFO] [FML]: Replaced 232 ore recipes [12:06:22] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [12:06:22] [Client thread/INFO] [FML]: Searching C:\Users\Durtle02\Documents\Minecraft Forge Mods\Test Mod\run\mods for mods [12:06:23] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [12:06:23] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, forge, tutorial] at CLIENT [12:06:23] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, forge, tutorial] at SERVER [12:06:24] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Tutorial Mod [12:06:24] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [12:06:24] [Client thread/INFO] [FML]: Found 443 ObjectHolder annotations [12:06:24] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [12:06:24] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [12:06:24] [Client thread/INFO] [FML]: Applying holder lookups [12:06:24] [Client thread/INFO] [FML]: Holder lookups applied [12:06:24] [Client thread/INFO] [FML]: Applying holder lookups [12:06:24] [Client thread/INFO] [FML]: Holder lookups applied [12:06:24] [Client thread/INFO] [FML]: Applying holder lookups [12:06:24] [Client thread/INFO] [FML]: Holder lookups applied [12:06:24] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [12:06:24] [Client thread/INFO]: [sTDOUT]: Tutorial Mod is loading! [12:06:24] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [12:06:24] [Client thread/INFO] [FML]: Applying holder lookups [12:06:24] [Client thread/INFO] [FML]: Holder lookups applied [12:06:24] [Client thread/INFO] [FML]: Injecting itemstacks [12:06:24] [Client thread/INFO] [FML]: Itemstack injection complete [12:06:26] [sound Library Loader/INFO]: Starting up SoundSystem... [12:06:26] [Thread-8/INFO]: Initializing LWJGL OpenAL [12:06:26] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:06:27] [Thread-8/INFO]: OpenAL initialized. [12:06:27] [sound Library Loader/INFO]: Sound engine started [12:06:30] [Client thread/INFO] [FML]: Max texture size: 8192 [12:06:30] [Client thread/INFO]: Created: 16x16 textures-atlas [12:06:32] [Client thread/INFO] [FML]: Injecting itemstacks [12:06:32] [Client thread/INFO] [FML]: Itemstack injection complete [12:06:32] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [12:06:32] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Tutorial Mod [12:06:33] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: BETA_OUTDATED Target: 13.19.0.2153 [12:06:34] [Client thread/INFO]: SoundSystem shutting down... [12:06:34] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [12:06:34] [sound Library Loader/INFO]: Starting up SoundSystem... [12:06:35] [Thread-10/INFO]: Initializing LWJGL OpenAL [12:06:35] [Thread-10/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:06:35] [Thread-10/INFO]: OpenAL initialized. [12:06:35] [sound Library Loader/INFO]: Sound engine started [12:06:37] [Client thread/INFO] [FML]: Max texture size: 8192 [12:06:37] [Client thread/INFO]: Created: 512x512 textures-atlas [12:06:38] [Client thread/WARN]: Skipping bad option: lastServer: [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found. [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: ================================================== [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: DOMAIN tutorial [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------------------------------- [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: domain tutorial is missing 1 texture [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: domain tutorial has 1 location: [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: unknown resourcepack type net.minecraft.client.resources.LegacyV2Adapter : FMLFileResourcePack:Tutorial Mod [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: ------------------------- [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: The missing resources for domain tutorial are: [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/ingotcopper.png [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: ------------------------- [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: No other errors exist for domain tutorial [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: ================================================== [12:06:39] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= [12:06:39] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id [12:07:00] [server thread/INFO]: Starting integrated minecraft server version 1.11 [12:07:00] [server thread/INFO]: Generating keypair [12:07:00] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [12:07:01] [server thread/INFO] [FML]: Applying holder lookups [12:07:01] [server thread/INFO] [FML]: Holder lookups applied [12:07:01] [server thread/INFO] [FML]: Loading dimension 0 (TestMod) (net.minecraft.server.integrated.IntegratedServer@25f00b3e) [12:07:01] [server thread/INFO] [FML]: Loading dimension 1 (TestMod) (net.minecraft.server.integrated.IntegratedServer@25f00b3e) [12:07:01] [server thread/INFO] [FML]: Loading dimension -1 (TestMod) (net.minecraft.server.integrated.IntegratedServer@25f00b3e) [12:07:01] [server thread/INFO]: Preparing start region for level 0 [12:07:02] [server thread/INFO]: Changing view distance to 12, from 10 [12:07:02] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [12:07:02] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [12:07:02] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@8.0.99.99,forge@13.19.0.2146,mcp@9.19,tutorial@1.0.0 [12:07:02] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [12:07:02] [server thread/INFO] [FML]: [server thread] Server side modded connection established [12:07:02] [server thread/INFO]: Player168[local:E:0dbfdcd1] logged in with entity id 114 at (1894.4650567693448, 4.0, 221.26697261013206) [12:07:02] [server thread/INFO]: Player168 joined the game [12:07:04] [server thread/INFO]: Saving and pausing game... [12:07:04] [server thread/INFO]: Saving chunks for level 'TestMod'/Overworld [12:07:04] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@396f84d9[id=7c2fb32a-48f4-3632-92b4-de6db3581064,name=Player168,properties={},legacy=false] com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[YggdrasilAuthenticationService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?] at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?] at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3054) [Minecraft.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [skinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_111] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_111] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_111] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_111] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111] [12:07:04] [server thread/INFO]: Saving chunks for level 'TestMod'/Nether [12:07:04] [server thread/INFO]: Saving chunks for level 'TestMod'/The End [12:07:07] [server thread/INFO]: Player168 has just earned the achievement [Taking Inventory] [12:07:07] [Client thread/INFO]: [CHAT] Player168 has just earned the achievement [Taking Inventory]
  25. Where should assets be?
×
×
  • Create New...

Important Information

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