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.

codebycody

Members
  • Joined

  • Last visited

Everything posted by codebycody

  1. Hey I don't know is this is the right forum for this (sorry if its not). I just finished making a mod that adds a jQuery like JS API for Minecraft. Its only really a Demo proof of concept type thing at this point. But I would love to know what features any interested modders would like to see exposed over JS. Github: https://github.com/cody-code-wy/MineQuery Website: http://minequery.unstable.tech So far I plan to add - More events, especially ones relating to players (achievements and the like) - The ability to register blocks (only at the appropriate time obviously) Known serious issues - Selectors don't know about dimensions, its selects blocks in every dimension at once...
  2. I have found that it looks like block.getPickBlock(state, null, world, pos, null).getDisplayName() works. But I'm not sure if this is the best possible way.
  3. I am trying to get the name of a block that is set in an anvil, during an event. so for example, if I took a dirt block and named it 'oak' in an anvil, how could I actually get that name during a BlockEvent.BlockBreak listener. I have been looking for a method for quite a while now.
  4. Does anyone know any good way to use the pahimar style setup with IntelliJ Idea?
  5. That probablyDoes has a lot to do with my problem... Reversing my logic fixed the totally bizarre non working code.
  6. I am trying to implement Full-Data Sync as described in http://www.minecraftforge.net/wiki/Tile_Entity_Synchronization I replaced public Packet getDescriptionPacket() with public SPacketUpdateTileEntity getUpdatePacket() I also tried public NBTTagCompound getUpdateTag() However neither is ever called. I also do have onDataPacket overridden, but it is also never called I replaced worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); markDirty(); with worldObj.scheduleBlockUpdate(pos,this.getBlockType(),0,0); this.markDirty(); Which is only getting called server side (world.isRemote == true). I suspect that scheduleBlockUpdate is not the direct replacement for markBlockForUpdate I also tried to use worldObj.addBlockEvent(pos, this.getBlockType(),1,myVar); server side, however public boolean receiveClientEvent(int id, int type) never gets called.

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.