Jump to content

bouwmeester2003

Members
  • Posts

    66
  • Joined

  • Last visited

Everything posted by bouwmeester2003

  1. yeah i'm new to mod coding now a bit of java but still learning java now some basic things but i come from the spigot plugin side
  2. i don't want to make an github don't want to make it open-source it's still in development gonna realease it soon and what i did imported IBlockState needs to be IBlockAccess. about open-source maybe in the feature i'm gonna make some sort of api or something for my mod and that you can use it for you're mod
  3. now i'm getting the error Method does not override Method from it's super class
  4. how did they do it with obsidian obsidian is breakable only by an diamond pickaxe isn't it
  5. did it already with if (harvesters.get() != null) { player = harvesters.get(); Item pickaxe = player.getHeldItemMainhand().getItem(); if (pickaxe.equals(ItemInit.CLOUD_PICKAXE)) { return; } else { setBlockUnbreakable(); } } but didn't work
  6. yeah but how to make it with that that it's only breakable by own pickaxe
  7. yeah so how can i make it that you can only break that block with cloud pickaxe and not with other pickaxes
  8. thanks my idea is to make a block that is unbreakable with diamond or lower but with the cloud pickaxe it's breakable
  9. i've made an pickaxe and an block but the problem is that i want to make the block only be harvestable by that particulair pickaxe and no other but it want succeed with setharvestlevel here the code: pickaxe: package com.CloudyProductions.DreamMod.heaven.items; import com.CloudyProductions.DreamMod.Main; import com.CloudyProductions.DreamMod.init.ItemInit; import com.CloudyProductions.DreamMod.util.DevMode; import com.CloudyProductions.DreamMod.util.IHasModel; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemPickaxe; public class ToolPickaxe extends ItemPickaxe implements IHasModel { public ToolPickaxe(String name, ToolMaterial material, CreativeTabs tab) { super(material); setUnlocalizedName(name); setRegistryName(name); setCreativeTab(tab); setMaxDamage(1000); setMaxStackSize(1); DevMode.DevMode("Pickaxe: " + name + " tab: " + tab + " maxdamage: " + 1000 + " stacksize: " + 1); ItemInit.ITEMS.add(this); } @Override public void registerModels() { Main.proxy.registerItemRendere(this, 0, "inventory"); } } the block class: package com.CloudyProductions.DreamMod.heaven.blocks; import com.CloudyProductions.DreamMod.Main; import com.CloudyProductions.DreamMod.init.BlockInit; import com.CloudyProductions.DreamMod.init.ItemInit; import com.CloudyProductions.DreamMod.util.DevMode; import com.CloudyProductions.DreamMod.util.IHasModel; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import java.util.Random; public class CloudBlock extends Block implements IHasModel { public CloudBlock(String name, Material material, CreativeTabs tab) { super(material); setUnlocalizedName(name); setRegistryName(name); setCreativeTab(tab); setSoundType(SoundType.STONE); setHardness(100f); setResistance(18000000f); setHarvestLevel("pickaxe", 10); setLightLevel(0f); setLightOpacity(0); BlockInit.BLOCKS.add(this); ItemInit.ITEMS.add(new ItemBlock(this).setRegistryName(this.getRegistryName())); DevMode.DevMode("name: " + name + " material: " + material + " tab: " + tab); } public void registerModels() { Main.proxy.registerItemRendere(Item.getItemFromBlock(this), 0, "inventory"); } @Override public Item getItemDropped(IBlockState state, Random rand, int fortune) { return Item.getItemFromBlock(this); } @Override public int quantityDropped(Random random) { return 1; } } the material code: public static final Item.ToolMaterial CLOUD_TOOL = EnumHelper.addToolMaterial("cloud_tool", 10, 1000, 15.0f, 30.0f, 20);
  10. yeah i know i did it only so i could easier make new blocks and that you can use the mod as an sort of api to make your own blocks IHasModel has only one code public interface IHasModel { public void registerModels(); } and in the other class i do public void registerModels() { Main.proxy.registerItemRendere(Item.getItemFromBlock(this), 0, "inventory"); } in client proxy i do @Override public void registerItemRendere(Item item, int meta, String id) { ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName(), id)); }
  11. think i know what i did wrong did not implemented in the PilarBaseUnbreakable class IHasModel
  12. still doesn't work someone help me no errors in log only in inventory you have no model
  13. gonna try it now with in the blockstate file { "variants":{ "axis=y": { "model": "dreammod:block_column_cloud" }, "axis=z": { "model": "dreammod:block_column_cloud", "x": 90 }, "axis=x": { "model": "dreammod:block_column_cloud", "x": 90, "y": 90 }, "inventory": {"model": "dreammod:block_column_cloud", "transform": "forge:default-block"} } } maybe it works
  14. the problem is it has textures but in inventory bar doesn't display them
  15. my log: [14:47:19] [Client thread/INFO] [FML]: MinecraftForge v14.23.5.2784 Initialized [14:47:19] [Client thread/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients. [14:47:19] [Client thread/INFO] [FML]: Replaced 1036 ore ingredients [14:47:22] [Client thread/INFO] [FML]: Searching C:\Users\milan.000\Documents\MEGA\dreammod\run\.\mods for mods [14:47:23] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 189398482 nanos [14:47:33] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [14:47:35] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, dreammod] at CLIENT [14:47:35] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, dreammod] at SERVER [14:47:37] [Client thread/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:DreamMod [14:47:38] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [14:47:38] [Client thread/INFO] [FML]: Found 1168 ObjectHolder annotations [14:47:38] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [14:47:38] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [14:47:38] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [14:47:38] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [14:47:38] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.util.DevMode:DevMode:11]: item: stick_cloud tab: com.CloudyProductions.DreamMod.objects.creativetabs.heaven.heaventools@1ab64f66 [14:47:39] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.util.DevMode:DevMode:11]: item: cloud tab: com.CloudyProductions.DreamMod.objects.creativetabs.heaven.heavenitems@23595dd9 [14:47:39] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.util.DevMode:DevMode:11]: name: block_cloud material: net.minecraft.block.material.Material@5a0d25ba tab: com.CloudyProductions.DreamMod.objects.creativetabs.heaven.heavenblocks@72e89ce2 sound: net.minecraft.block.SoundType@1bb6b0f3 hardness: 100.0 resistance: 1.8E7 toolclass: pickaxe level: 6 lightlevel: 0.0 lightpacity: 0 unbreakable: true drops: com.CloudyProductions.DreamMod.objects.items.ItemBase@2b4b3918 droptotal: com.CloudyProductions.DreamMod.objects.items.ItemBase@2b4b3918 [14:47:39] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.util.DevMode:DevMode:11]: name: block_column_cloud material: net.minecraft.block.material.Material@5a0d25ba tab: com.CloudyProductions.DreamMod.objects.creativetabs.heaven.heavenblocks@72e89ce2 sound: net.minecraft.block.SoundType@1bb6b0f3 hardness: 100.0 resistance: 1.8E7 toolclass: pickaxe level: 6 lightlevel: 0.0 lightpacity: 0 unbreakable: true drops: com.CloudyProductions.DreamMod.objects.items.ItemBase@2e61695b droptotal: com.CloudyProductions.DreamMod.objects.items.ItemBase@2e61695b [14:47:39] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.util.DevMode:DevMode:11]: name: block_ore_cloud material: net.minecraft.block.material.Material@720f0fa2 tab: com.CloudyProductions.DreamMod.objects.creativetabs.heaven.heavenblocks@72e89ce2 sound: net.minecraft.block.SoundType@1bb6b0f3 hardness: 5.0 resistance: 50.0 toolclass: pickaxe level: 4 lightlevel: 1.0 lightpacity: 0 drops: com.CloudyProductions.DreamMod.objects.items.ItemBase@2b4b3918 droptotal: com.CloudyProductions.DreamMod.objects.items.ItemBase@2b4b3918 [14:47:39] [Client thread/INFO] [FML]: Applying holder lookups [14:47:39] [Client thread/INFO] [FML]: Holder lookups applied [14:47:39] [Client thread/INFO] [FML]: Applying holder lookups [14:47:39] [Client thread/INFO] [FML]: Holder lookups applied [14:47:39] [Client thread/INFO] [FML]: Applying holder lookups [14:47:39] [Client thread/INFO] [FML]: Holder lookups applied [14:47:39] [Client thread/INFO] [FML]: Applying holder lookups [14:47:39] [Client thread/INFO] [FML]: Holder lookups applied [14:47:39] [Client thread/INFO] [FML]: Injecting itemstacks [14:47:39] [Client thread/INFO] [FML]: Itemstack injection complete [14:47:40] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: OUTDATED Target: 14.23.5.2796 [14:48:42] [Sound Library Loader/INFO] [minecraft/SoundManager]: Starting up SoundSystem... [14:48:42] [Thread-5/INFO] [minecraft/SoundManager]: Initializing LWJGL OpenAL [14:48:42] [Thread-5/INFO] [minecraft/SoundManager]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [14:48:45] [Thread-5/INFO] [minecraft/SoundManager]: OpenAL initialized. [14:48:45] [Sound Library Loader/INFO] [minecraft/SoundManager]: Sound engine started [14:48:54] [Client thread/INFO] [FML]: Max texture size: 16384 [14:48:56] [Client thread/INFO] [minecraft/TextureMap]: Created: 512x512 textures-atlas [14:49:04] [Client thread/INFO] [FML]: Applying holder lookups [14:49:04] [Client thread/INFO] [FML]: Holder lookups applied [14:49:04] [Client thread/INFO] [FML]: Injecting itemstacks [14:49:04] [Client thread/INFO] [FML]: Itemstack injection complete [14:49:04] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.Main:postInit:46]: [14:49:04] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.Main:postInit:47]: [14:49:04] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.Main:postInit:48]: [14:49:04] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.Main:postInit:49]: [14:49:04] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.Main:postInit:50]: [14:49:04] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.Main:postInit:51]: Mod Started [14:49:04] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.Main:postInit:52]: [14:49:04] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.Main:postInit:53]: [14:49:04] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.Main:postInit:54]: [14:49:04] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.Main:postInit:55]: [14:49:04] [Client thread/INFO] [STDOUT]: [com.CloudyProductions.DreamMod.Main:postInit:56]: [14:49:05] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [14:49:06] [Client thread/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer: [14:49:07] [Client thread/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded [14:49:13] [Realms Notification Availability checker #1/INFO] [mojang/RealmsClient]: Could not authorize you against Realms server: Invalid session id [14:49:23] [Server thread/INFO] [minecraft/IntegratedServer]: Starting integrated minecraft server version 1.12.2 [14:49:23] [Server thread/INFO] [minecraft/IntegratedServer]: Generating keypair [14:49:23] [Server thread/INFO] [FML]: Injecting existing registry data into this server instance [14:49:23] [Server thread/INFO] [FML]: Registry Block: Found a missing id from the world dreammod:block_pilar_cloud [14:49:24] [Server thread/INFO] [FML]: Applying holder lookups [14:49:24] [Server thread/INFO] [FML]: Holder lookups applied [14:49:25] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@12706ac6) [14:49:26] [Server thread/INFO] [minecraft/AdvancementList]: Loaded 488 advancements [14:49:27] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@12706ac6) [14:49:27] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@12706ac6) [14:49:27] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing start region for level 0 [14:49:28] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing spawn area: 2% [14:49:30] [Server thread/INFO] [FML]: Unloading dimension -1 [14:49:30] [Server thread/INFO] [FML]: Unloading dimension 1 [14:49:30] [Server thread/INFO] [minecraft/IntegratedServer]: Changing view distance to 2, from 10 [14:49:36] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [14:49:36] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [14:49:36] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : minecraft@1.12.2,dreammod@0.0.1T2 - MC 1.12.2,FML@8.0.99.99,forge@14.23.5.2784,mcp@9.42 [14:49:36] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [14:49:36] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established [14:49:36] [Server thread/INFO] [minecraft/PlayerList]: Player407[local:E:d7216ec6] logged in with entity id 114 at (-1256.7049911088864, 5.0, -776.7016242586626) [14:49:36] [Server thread/INFO] [minecraft/MinecraftServer]: Player407 joined the game [14:49:39] [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game... [14:49:39] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'New World'/overworld [14:49:41] [pool-2-thread-1/WARN] [mojang/YggdrasilMinecraftSessionService]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@51dab236[id=da5cc374-3bd7-357d-9ee2-36c8124e8cc4,name=Player407,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:3716) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) [guava-21.0.jar:?] at com.google.common.cache.LocalCache.get(LocalCache.java:4154) [guava-21.0.jar:?] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) [guava-21.0.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?] at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3182) [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_191] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191] [14:49:57] [Client thread/INFO] [minecraft/GuiNewChat]: [CHAT] Saved screenshot as 2018-12-14_14.49.57.png [14:49:59] [Client thread/INFO] [minecraft/GuiNewChat]: [CHAT] Saved screenshot as 2018-12-14_14.49.59.png [14:50:00] [Server thread/INFO] [minecraft/IntegratedServer]: Saving and pausing game... [14:50:00] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'New World'/overworld [14:50:01] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server [14:50:01] [Server thread/INFO] [minecraft/MinecraftServer]: Saving players [14:50:01] [Server thread/INFO] [minecraft/NetHandlerPlayServer]: Player407 lost connection: Disconnected [14:50:01] [Server thread/INFO] [minecraft/MinecraftServer]: Player407 left the game [14:50:01] [Server thread/INFO] [minecraft/NetHandlerPlayServer]: Stopping singleplayer server as player logged out [14:50:01] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds [14:50:01] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'New World'/overworld [14:50:01] [Server thread/INFO] [FML]: Unloading dimension 0 [14:50:01] [Server thread/INFO] [FML]: Applying holder lookups [14:50:01] [Server thread/INFO] [FML]: Holder lookups applied [14:50:16] [Client thread/INFO] [minecraft/Minecraft]: Stopping! [14:50:16] [Client thread/INFO] [minecraft/SoundManager]: SoundSystem shutting down... [14:50:17] [Client thread/WARN] [minecraft/SoundManager]: Author: Paul Lamb, www.paulscode.com BUILD SUCCESSFUL pictures of the problem
×
×
  • Create New...

Important Information

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