Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Warix

Forge Modder
  • Joined

  • Last visited

Everything posted by Warix

  1. Hello , i made a custom entity and when i summon it , it's not placed in center of bounding box, also how do i rotate it's parts? I tried but i can't seem to succeed at it. Also i used Techne to make model for my entity. Render code: Model code: Normally spawned entity: http://orig14.deviantart.net/809a/f/2015/248/c/5/2015_09_05_20_58_25_by_warix3-d98hcdd.png[/img] Side view: http://orig01.deviantart.net/c2a5/f/2015/248/7/6/2015_09_05_20_58_47_by_warix3-d98hccn.png[/img] Rotated X by 90 degrees: http://orig05.deviantart.net/2cb3/f/2015/248/e/0/2015_09_05_21_01_13_by_warix3-d98hcbu.png[/img]
  2. I need to attach one entity to some other mobs, (by attaching i mean when i press button it will spawn on that entity and it will change its location and rotation based on entity it is attached to ) I done everything but i can't make entity to stay attached to another one. I know it can be done with updating entity but i don't know how to deliver coordinates of entity it is attached to. I hope i was clear with what i said, it sounds little complicated.
  3. Thanks, that worked, I didn't know you had to use it that way, i thought i can just pass information when i call packets.
  4. Hello, i have a problem with packets. I need to send information from gui to server, information is id of pressed button . Do i have to create special class for every id or they all can be sent from one ? I tried with one but it doesn't work, when i try to get information i sent it just returns static one from class. my packet code:
  5. I tried to install 1504 version of minecraft forge and i get error after i started eclipse ( same as this guy http://www.minecraftforge.net/forum/index.php/topic,33216). I just wondered what are these versions. ( 1502 works for me). I'm not sure is it supposed not to work , because i installed it same way as normal minecraft forge.
  6. Hello, i need to write some data (boolean) to Entites , i'm not sure how to do it, so far i was using custom name tags but i'm sure there are better ways to do it, because players can edit name tags. I tried to write nbt but there is only get function for entites.
  7. Hello , i need event when player kills entity , because i need to do some modifications on item he is holding when he kills it, so far i found LivingDeathEvent but it doesn't return player. , There is AttackEntityEvent from player events, but i need to get it when entity dies . I tried to calculate if entity will die after attack but i couldn't do it correctly because there is armor, enchantments and stuff.
  8. Thanks, i couldn't find it because i used latest stable version, I updated to latest snapshot and i found it.
  9. From which class I should call that method, its not declared in Object class, there is only getClass()
  10. Hello, so i used chunk load event , and i need to get every EntityCreature (and do some modifications to them) from event.getChunk().getEntityLists(); but i have no idea how , i tried to use for(Object a : b) (where b is entity list) but i cant cast a to EntityCreature. My current code:
  11. I need to summon a particle ( one you get when you break a block, ice in my case) I tried to summon it using worldIn.spawnParticle(EnumParticleTypes.BLOCK_DUST, this.posX, this.posY + 1,this.posZ, 0, 0, 0); but that just crashes minecraft because it doesn't know which block to use. Is there any way to do it or i have to make custom particle?
  12. Hey i tried that but i can't get it to work, NBT isn't working for me from gui, it won't set data i need. I don't get any errors but it just don't set data. gui code: reading from nbt: setting nbt:
  13. Thanks, I didn't know about this.
  14. It's pointing to GuiScreen class code: I did check now and it seems that mc is null. I don't have other ideas how to access players inventory so i guess only solution left is to do packets?
  15. Thanks, i know they can be null but they won't since they are only called when i use that item with shift right click i guess. Or am I using wrong function to get item in hand? i tried with .getHeldItem() but it gives same error, i will try to do packets.
  16. So i tried to do what title says, and i get error for null exception, i tried to set nbt from this.mc.thePlayer.getItemInUse(); my code: Basically i want to make item, when you right click with him it uses power depending on nbt tag, and when u shift right click you choose which power you want to use from custom gui. If there is better solution for this please tell me. and also there is error : I get error when i try to shift right click with that item.
  17. Oh thanks, i followed this tutorial: http://www.minecraftforge.net/wiki/Basic_GUI , and i confused BasicGui with GuiBasic , i changed public static GuiWand instance; to public static mymod instance; and now it works fine.
  18. Also here is code that calls gui : public boolean onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ) { if(playerIn.isSneaking()) { playerIn.openGui(mymod.instance, GuiWand.GUI_ID, worldIn, 0, 0, 0); } return false; }
  19. Hello, i'm trying to make custom gui but i always get crash in when i start minecraft here is some more info: crash: main file code: gui file code: and IGuiHandler code (Used it in common proxy) : I'm new to modding and this is my first mod ever so its probably something very simple.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.