Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Bugzoo

Members
  • Posts

    268
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Personal Text
    I ask for help more than I help others...

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Bugzoo's Achievements

Diamond Finder

Diamond Finder (5/8)

-2

Reputation

  1. I have a model. When I right click on the model, I want the model to change. I have tried using booleans before if(renderChangedModel == true){ //Render Code } But using that code makes it impossible for block NBT to work. What is the best way to do this?
  2. I can't find any tutorials for reading/writing block NBT. If I give the block an item, the block changes model, so I want a tutorial which shows me how to make the change to the block I right clicked on and not every one of them
  3. Ok, i wrote out some code using that method and stuff you told me. I might be doing this completely wrong, but my game is crashing public static ArrayList<Block> BuildingBlocks; CreativeTabs.tabBlock.displayAllReleventItems(BuildingBlocks); for(num = 0; num<BuildingBlocks.size(); num++){ this.drawItemStack(new ItemStack(BuildingBlocks.get(num)), width / 2 - num * 20 + 100, height / 2 - heightNum, ""); }
  4. you use the onBlockActivated method, like this @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9){ if(player.getHeldItem() != null && player.getHeldItem().getItem() == YOURITEMHERE){ //Do SOMETHING Here }
  5. I have a few blocks in a GUI. I render the blocks on the screen from a for loop. I add to the xCoords everytime the for loop runs so the blocks wont overlap. Though with this code, the blocks keep adding on the xCoords which makes them fly out of the screen. The xCoord variable is not static by the way. Here is my code for(num = 0; num<BuildingBlocks.length; num++){ this.drawItemStack(new ItemStack(BuildingBlocks[num]), width / 2 - xCoords, height / 2 - 55, ""); xCoords += 1; }
  6. I want to list every single block in the Building Blocks creative tab, in one array. I don't want to type them all out one by one, how would I do it? (if it is possible)
  7. Thanks, works now. One last question though. How do I get a world, because I need to check if world.isRemote
  8. Yea, I tried that, though it doesn't seem to have the .addChatMessage in it for some reason
  9. *facepalm* Im not stupid. There is no EntityPlayer in my event...
  10. Found that out a few minutes ago, but thanks anyway. How do I send a chat message to the owner?
  11. Sorry if this is a (very) derpy question, but how do I get the EntityPlayer from an event. I have tried casting it as EntityPlayer, though no luck @SubscribeEvent public void onEntityLivingDeath(LivingDeathEvent event) { if (event.entityLiving instanceof EntityWolf && ((EntityWolf)event.entityLiving).isTamed()) { ((EntityPlayer) event.entityLiving).addChatComponentMessage(new ChatComponentText("Your Wolf Has Sadly Died")); } } But it just crashes.
  12. They are words of wisdom. Words I will remember for my whole life. It says that you can be more than one thing... idk
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.