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.

grossik

Members
  • Joined

  • Last visited

Everything posted by grossik

  1. I'm trying to do it: Crash:
  2. How load .obj file for mob? This code I found for the older version.
  3. I added to event. @SubscribeEvent public void move(PlayerEvent event) { if (event.getEntity() instanceof EntityPlayer) { if(event.getEntityPlayer().isRiding()) { if(event.getEntityPlayer().getRidingEntity() instanceof EntityVehicle) { event.getEntityPlayer().addStat(StatList.BOAT_ONE_CM); } } } } But it still does not move.
  4. The new boat is not moving when the player is in it. Why? Entity: http://pastebin.com/CPJMQSan Render: http://pastebin.com/NXqcgFKP Model: http://pastebin.com/m3D1aeu2 Item: http://pastebin.com/iu4mU5t7
  5. I need dual input and no fuel. It will solve everything.
  6. I know it too, but I do not know how.
  7. I need to BottleFW smelting only FermentedWine and KegForBeer only BeerBucket. How to do it? :'( public class SlotBottlingFuel extends Slot { public static boolean wine = false; public static boolean beer = false; public SlotBottlingFuel(IInventory inventoryIn, int slotIndex, int xPosition, int yPosition) { super(inventoryIn, slotIndex, xPosition, yPosition); } public boolean isItemValid(ItemStack stack) { if(stack.getItem() == ItemHandler.FermentedWine) { beer = false; wine = true; } if(stack.getItem() == ItemHandler.BeerBucket) { wine = false; beer = true; } return TileEntityBottling.isItemFuel(stack) || isBucket(stack); } public int getItemStackLimit(ItemStack stack) { return isBucket(stack) ? 1 : super.getItemStackLimit(stack); } public static boolean isBucket(ItemStack stack) { return stack != null && stack.getItem() != null && stack.getItem() == Items.bucket; } } public class BottlingRecipes { private static final BottlingRecipes smeltingBase = new BottlingRecipes(); private Map<ItemStack, ItemStack> smeltingList = Maps.<ItemStack, ItemStack>newHashMap(); private Map<ItemStack, Float> experienceList = Maps.<ItemStack, Float>newHashMap(); public static BottlingRecipes instance() { return smeltingBase; } private BottlingRecipes() { if(SlotBottlingFuel.wine == true) { this.addSmelting(ItemHandler.BottleFW, new ItemStack(ItemHandler.BottleSW), 0.0F); } if(SlotBottlingFuel.beer == true) { this.addSmelting(ItemHandler.KegForBeer, new ItemStack(ItemHandler.KegOfBeer), 0.0F); } } public void addSmeltingRecipeForBlock(Block input, ItemStack stack, float experience) { this.addSmelting(Item.getItemFromBlock(input), stack, experience); } public void addSmelting(Item input, ItemStack stack, float experience) { this.addSmeltingRecipe(new ItemStack(input, 1, 32767), stack, experience); } public void addSmeltingRecipe(ItemStack input, ItemStack stack, float experience) { if (getSmeltingResult(input) != null) { net.minecraftforge.fml.common.FMLLog.info("Ignored smelting recipe with conflicting input: " + input + " = " + stack); return; } this.smeltingList.put(input, stack); this.experienceList.put(stack, Float.valueOf(experience)); } public ItemStack getSmeltingResult(ItemStack stack) { for (Entry<ItemStack, ItemStack> entry : this.smeltingList.entrySet()) { if (this.compareItemStacks(stack, (ItemStack)entry.getKey())) { return (ItemStack)entry.getValue(); } } return null; } private boolean compareItemStacks(ItemStack stack1, ItemStack stack2) { return stack2.getItem() == stack1.getItem() && (stack2.getMetadata() == 32767 || stack2.getMetadata() == stack1.getMetadata()); } public Map<ItemStack, ItemStack> getSmeltingList() { return this.smeltingList; } public float getSmeltingExperience(ItemStack stack) { float ret = stack.getItem().getSmeltingExperience(stack); if (ret != -1) return ret; for (Entry<ItemStack, Float> entry : this.experienceList.entrySet()) { if (this.compareItemStacks(stack, (ItemStack)entry.getKey())) { return ((Float)entry.getValue()).floatValue(); } } return 0.0F; } }
  8. https://github.com/KakesRevenge/ProjektWow/blob/master/src/main/java/cz/grossik/projektwow/handler/WoWEventHandler.java
  9. Although I have the code erased but as join the world again and I Unset again.
  10. When I write /warrior I should be a warrior, but as join the world again and I Unset again.
  11. Whenever I start world and write /warrior everything works, but how to retrieves a world again I am again Unset.
  12. How do I do that the command is changed player prefix?

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.