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.

godbaba

Members
  • Joined

  • Last visited

Everything posted by godbaba

  1. godbaba replied to godbaba's topic in Modder Support
    Yea I had a look into the wiki... I do it all the time but there is no information on this on the wiki or I missed
  2. godbaba posted a topic in Modder Support
    Hello guys I am trying to change nbt of a player who is offline on a server Are there any way to do this ?
  3. Hey guys , I have a ItemStack for example i want to know if the itemstack contains a block or item. Can anyone help ?
  4. you need to create your own class Check the buttons in the Book and Quil
  5. Thanks dude i got it... Be a little helpful to people... If you need money go to work
  6. Okey then how can i make a item that opens a container... There is no need it to save just open it ? Can you give me a full code ?
  7. The question is simple how can i add another slot to the vanilla inventory ?
  8. Im not talking about the nbts etc im talking about the full setup containers , iinventories , nbts , guis , gui handlers
  9. Hey guys I have no idea how to implement containers to the items anybody that can show me where to start ? at least an example code i dont know such as bags etc ?
  10. godbaba replied to godbaba's topic in Modder Support
    With some code updating i made it work that you dude
  11. godbaba replied to godbaba's topic in Modder Support
    So what do you mean by building blocks ? Is it a mod or what ?
  12. godbaba posted a topic in Modder Support
    Hey guys Im working on a mod and we have very big buildings so when we attempt to use world.setBlock we get 27k lines of code for a building... So we are looking for a way to build the buildings from schematics (schematics from mcedit) Please help me At least show me where to look for this system...
  13. Im using this code to add my custom icons... inventory.png is an edited version of original inventory... @Override public int getStatusIconIndex() { Minecraft.getMinecraft().renderEngine.bindTexture("mytextures/gui/inventory.png"); return super.getStatusIconIndex(); } And to select from these icons you use .setIconIndex(2, 0); .setIconIndex(1, 3); etc...
  14. Yes it is possible...but dont know how...there is mods doing it...
  15. Im adding a flight item into game but i dont want to use player.capabilities so i started to write it from scratch but to make player fly like all other mods i need to set player on ladder but there is no code such as player.setOnLadder(); How can i set the player on ladder ?
  16. package mod.sylph3ed.poisonsplus; import net.minecraft.potion.Potion; public class PotionPoisonsPlus extends Potion { public PotionPoisonsPlus(int par1, boolean par2, int par3) { super(par1, par2, par3); // TODO Auto-generated constructor stub } // Set the icon public Potion setIconIndex(int par1, int par2) { super.setIconIndex(par1, par2); return this; } } all you need is this code... then you should add this into your main file public static Potion potionofmymod = new PotionPoisonPlus(an id over 25).setUnlocalizedName("potionofmymod"); To add your potion to an entity player.addPotionEffect(new PotionEffect(mainmodfile.potionofmymod.potionID,200,0))
  17. Thanks You Mate ! This simple code helped alot
  18. Thank you! I checked the tutorial it really helped thats mate Thank you too mate ! I solved my problem
  19. Hello guys I want to add items to chests I know the coordinates of chests and I want to add some items in them Any code would help thanks
  20. Hello guys for my mod Im creating my own biome I want to have different grass color and water color I found how to set water color but I cant figure out how to set grass color ? this.waterColorMultiplier = 0xC42766; If someone can help I will be happy
  21. I dont care what slots do you have slots which I cannot get working If you post your code Im sure it will be helpful for me :D
  22. I dont need something selective Your code will help me but If you dont want to share no problem mate
  23. hey can I get all of your container codes I need some examples to figure out how containers work If you help me , I will be very happy ...
  24. I looked all of the game classes about containers but they are very complicated for a started so Im looking for small tutorials
  25. Im trying to get into making machines etc but first I need to learn basic I dont know such as making 1 slot chest or furnace...Whatever the easiest I want to learn the basics so I can create my own machines,chests or other crap

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.