xelatercero
-
Posts
52 -
Joined
-
Last visited
Posts posted by xelatercero
-
-
Hi , i have a block and i want to implement this function for fun, but io dont know how use this methos i mean i dont know what data i need to input, thanks and sorry for my english.
@Override public boolean canEntityDestroy(IBlockState state, IBlockAccess world, BlockPos pos, Entity entity) { return super.canEntityDestroy(state, world, pos, entity); }
-
how idiot can i be, than you!!!!
-
ok if i do it i get this:
Caught exception from xelamod java.lang.NullPointerException at com.xelatercero.xelamod.init.ModItems.registerRender(ModItems.java:26) ~[bin/:?] at com.xelatercero.xelamod.init.ModItems.registerRenders(ModItems.java:22) ~[bin/:?] at com.xelatercero.xelamod.ClientProxy.preInit(ClientProxy.java:9) ~[bin/:?] at com.xelatercero.xelamod.xelamod.preInit(xelamod.java:26) ~[bin/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60] at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:599) ~[forgeSrc-1.10.2-12.18.2.2099.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60] 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:239) ~[forgeSrc-1.10.2-12.18.2.2099.jar:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217) ~[forgeSrc-1.10.2-12.18.2.2099.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60] 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:142) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:609) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:477) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] [17:34:34] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:649]: ---- Minecraft Crash Report ----
-
Does it look like a big black/pink square?
Yes.
Main
@Mod(modid=Reference.MOD_ID , name=Reference.MOD_NAME, version=Reference.MOD_VERSION) public class xelamod { @SidedProxy(clientSide=Reference.CLIENT_SIDE, serverSide=Reference.SERVER_SIDE) public static CommonProxy proxy; @Instance public static xelamod instance = new xelamod(); @EventHandler public void preInit(FMLPreInitializationEvent e) { proxy.preInit(); ModItems.init(); ModItems.register(); } @EventHandler public void init(FMLInitializationEvent e) { proxy.Init(); } @EventHandler public void postInit(FMLPostInitializationEvent e) { proxy.postInit(); } }
Client
public class ClientProxy extends CommonProxy{ public void preInit() { super.preInit(); } public void Init() { super.Init(); ModItems.registerRenders(); } public void postInit() { super.postInit(); } @Override public boolean isDedicatedServer() { return false; } }
ModItem class
public class ModItems { public static Item orbeMedio; public static void init() { orbeMedio = new OrbeMedio(); } public static void register() { GameRegistry.register(orbeMedio); } public static void registerRenders() { registerRender(orbeMedio); } private static void registerRender(Item item) { ModelResourceLocation itemResourceLocation = new ModelResourceLocation(item.getRegistryName(), "inventory"); ModelLoader.setCustomModelResourceLocation(item, 0, itemResourceLocation); } }
Item Model:
Parent:
{ "parent":"item/generated", "textures": { "layer0":"xelamod:items/orbeMedio" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } }
Item :
{ "parent":"xelamod:item/standartOrbeMedio", "textures": { "layer0":"xelamod:items/orbeMedio" } }
-
1 - Yes this is the last log
2- Yes i am 100% registering the model in the client proxy iun Init
3-The model doesnt work
-
Last log
[10:59:05] [Client thread/INFO]: Setting user: Player294 [10:59:09] [Client thread/WARN]: Skipping bad option: lastServer: [10:59:09] [Client thread/INFO]: LWJGL Version: 2.9.4 [10:59:13] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:xelamod [10:59:15] [sound Library Loader/INFO]: Starting up SoundSystem... [10:59:16] [Thread-8/INFO]: Initializing LWJGL OpenAL [10:59:16] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [10:59:16] [Thread-8/INFO]: OpenAL initialized. [10:59:16] [sound Library Loader/INFO]: Sound engine started [10:59:19] [Client thread/INFO]: Created: 16x16 textures-atlas [10:59:21] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:xelamod [10:59:23] [Client thread/INFO]: SoundSystem shutting down... [10:59:24] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [10:59:24] [sound Library Loader/INFO]: Starting up SoundSystem... [10:59:24] [Thread-10/INFO]: Initializing LWJGL OpenAL [10:59:24] [Thread-10/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [10:59:24] [Thread-10/INFO]: OpenAL initialized. [10:59:24] [sound Library Loader/INFO]: Sound engine started [10:59:27] [Client thread/INFO]: Created: 1024x512 textures-atlas [10:59:28] [Client thread/WARN]: Skipping bad option: lastServer: [10:59:29] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id [10:59:42] [server thread/INFO]: Starting integrated minecraft server version 1.10.2 [10:59:42] [server thread/INFO]: Generating keypair [10:59:43] [server thread/INFO]: Preparing start region for level 0 [10:59:43] [server thread/INFO]: Changing view distance to 12, from 10 [10:59:45] [server thread/INFO]: Player294[local:E:bbf83733] logged in with entity id 120 at (417.77802192786663, 4.0, 1731.81928791248) [10:59:45] [server thread/INFO]: Player294 joined the game [10:59:46] [server thread/INFO]: Saving and pausing game... [10:59:46] [server thread/INFO]: Saving chunks for level 'New World'/Overworld [10:59:46] [server thread/INFO]: Saving chunks for level 'New World'/Nether [10:59:46] [server thread/INFO]: Saving chunks for level 'New World'/The End [10:59:46] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@e406aec[id=132512aa-0146-35c4-8d7a-8445da21ff87,name=Player294,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:65) ~[YggdrasilAuthenticationService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:59) [YggdrasilMinecraftSessionService$1.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:56) [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:165) [YggdrasilMinecraftSessionService.class:?] at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3060) [Minecraft.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [skinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_60] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_60] at java.lang.Thread.run(Unknown Source) [?:1.8.0_60] [10:59:47] [server thread/INFO]: Player294 has just earned the achievement [Taking Inventory] [10:59:47] [Client thread/INFO]: [CHAT] Player294 has just earned the achievement [Taking Inventory] [11:01:45] [Client thread/INFO]: Stopping! [11:01:45] [Client thread/INFO]: SoundSystem shutting down... [11:01:45] [server thread/INFO]: Stopping server [11:01:45] [server thread/INFO]: Saving players [11:01:45] [server thread/INFO]: Saving worlds [11:01:45] [server thread/INFO]: Saving chunks for level 'New World'/Overworld [11:01:45] [server thread/INFO]: Saving chunks for level 'New World'/Nether [11:01:45] [server thread/INFO]: Saving chunks for level 'New World'/The End [11:01:46] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [11:01:46] [Client Shutdown Thread/INFO]: Stopping server [11:01:46] [Client Shutdown Thread/INFO]: Saving players [11:01:46] [Client Shutdown Thread/INFO]: Saving worlds
-
-
Ok now io dont get any error but texture dont load:
{ "parent":"item/generated", "textures": { "layer0":"xelamod:items/orbeMedio" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } }
OrbeMedio.json
{ "parent":"xelamod:item/standartOrbeMedio", "textures": { "layer0":"xelamod:items/orbeMedio" } }
-
he is searching in wrong place why?
private static void registerRender(Item item) { ModelResourceLocation itemResourceLocation = new ModelResourceLocation("xelamod:" + item.getRegistryName(), "inventory"); ModelLoader.setCustomModelResourceLocation(item, 0, itemResourceLocation); }
error:
Caused by: java.io.FileNotFoundException: xelamod:models/item/xelamod:OrbeMedio.json
why he search in models/item/xelamod:Orbemedio.json
-
Step 2: your unlocalized name does not contain your modID and should.
i never added modid in my ulocalized name.
this code will crash a dedicated server because you are using client side code in a common location. It does not matter that you only call this method from your client proxy, it's mere existence will crash the server.what is the correct way to do it?
and my item.json is no needed , because works i mean i am using objects from another mod that i have maded and works fine, you helped me with my item json so it cant be wrong, right?
-
hello i am trying different ways to create items. With this way i dont get any error but the texture dont load:
ModiItems:
public class ModItems { public static Item orbeMedio; public static void init() { orbeMedio = new OrbeMedio(); } public static void register() { GameRegistry.register(orbeMedio); } public static void registerRenders() { registerRender(orbeMedio); } private static void registerRender(Item item) { ModelResourceLocation itemResourceLocation = new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"); ModelLoader.setCustomModelResourceLocation(item, 0, itemResourceLocation); } }
Item:
public class OrbeMedio extends Item { public OrbeMedio() { this.setUnlocalizedName("orbeMedio"); this.setRegistryName("OrbeMedio"); this.setMaxStackSize(1); this.setCreativeTab(CreativeTabs.MISC); } }
ClientProxy
public class ClientProxy extends CommonProxy{ public void preInit() { super.preInit(); ModItems.registerRenders(); } public void Init() { super.Init(); } public void postInit() { super.postInit(); } @Override public boolean isDedicatedServer() { return false; } }
CommonProxy
public abstract class CommonProxy { public void preInit() { ModItems.init(); } public void Init() { } public void postInit() { } public abstract boolean isDedicatedServer(); }
-
ok thanks, but i am doing some tests and why the message is ssent 2 times?
@SubscribeEvent public void craftingTableEvent(AttackEntityEvent e){ EntityPlayer p = e.getEntityPlayer(); Entity h = e.getTarget(); if(e.getTarget() instanceof EntityHorse) { p.addExperience(500); p.inventory.addItemStackToInventory(new ItemStack(Items.BED,1)); p.addChatComponentMessage(new TextComponentTranslation("Deja de pegar al caballo")); }
-
chat message
-
How i can send message t a player?
-
ok, some reference or tutorial to do this? thanks
-
yes i have done it , when i use the orb in craft the item gets damaged and at 50 uses the item gets destroyed, but i want that when i use a orb to craft another orb that orb desappear
-
I have a mod that implements 3 orbs, to craft medium orn you need the basic one , but these orbs have durability so when i craft the medium orb the basic orb only gets damaged but, dont desappear. My question is how I can establish that, when the medium orb is created, the basic orb disappears
-
ok nvm i got it , thanks for all
-
ok now my item is getteing damaged in the recipes but when the item is damaged i cant use it in crafting recipes, how i can fix this?
Recipe:
GameRegistry.addRecipe(new ItemStack(Items.IRON_PICKAXE), "@@@", " # ", " ", '@', Items.IRON_INGOT, '#', StartupCommonOrbeMedio.orbeMedio );
My item class:
@Override public ItemStack getContainerItem(ItemStack itemstack) { ItemStack item = itemstack.copy(); item.setItemDamage(item.getItemDamage() + 1); item.stackSize = 1; return item; } @Override public boolean hasContainerItem(ItemStack stack) { return stack.getItemDamage()<127; }
-
where i call thisCall setContainerItem for returning a simple Item without any properties (metadata, NBT). -
i dont really understaand some code example?
-
I want to do some recipes but the recipes uses a item that i have created, i want to know how i can keep my item after the craft, some tutorial or help, thanks
-
Ok i have solved it my error:
orbeMedio = (OrbeMedio)(new OrbeBasico().setUnlocalizedName("Orbe Medio"));
i casted OrbeMedio but i used OrbeBasico
-
i have done OrbeBasico like OrbeMedio and works fine no erros but when i ad this item i have taht error. My OrbeMedio classs extends Item so i only cast it in this line:
orbeMedio = (OrbeMedio)(new OrbeBasico().setUnlocalizedName("Orbe Medio"));
Crash Server 1.7.10 "Tickiing entity"
in Support & Bug Reports
Posted · Edited by xelatercero
THe thing is that sometimes the player mine a ore called "Randomite" and crash , when he try to join crash without even charging terrain , i tried to delete player data but nothing happens still crashing:
And also i get this message all the time since then: "fetching addpacket for removed entity"
Log: