Jump to content

Dustpuppy

Members
  • Posts

    120
  • Joined

  • Last visited

Everything posted by Dustpuppy

  1. I did. Result is, that the error is gone, i have a model error now and the black-pink blocks also don't decay.
  2. I don't get it. Is there another way to get decay, then with blockstates?
  3. You mean this? setDefaultState(blockState.getBaseState().withProperty(CHECK_DECAY, true).withProperty(DECAYABLE, true)); Then it will cause the same error, just it comes during loading and not, when the leaves are generated.
  4. Hi, i can't get leaves decay working. I tried now to put this in my client proxy before loading the item model ModelLoader.setCustomStateMapper(StartupCommon.blockCherryLeaves, new StateMap.Builder().ignore(new IProperty[] {StartupCommon.blockCherryLeaves.DECAYABLE}).ignore(new IProperty[] {StartupCommon.blockCherryLeaves.CHECK_DECAY}).build()); I've tried it with a json file with the property. { "variants": { "normal": { "model": "thewizardmod:cherry_leaves" }, "check_decay=false, decayable=false": { "model": "thewizardmod:cherry_leaves" }, "check_decay=true, decayable=false": { "model": "thewizardmod:cherry_leaves" }, "check_decay=false, decayable=true": { "model": "thewizardmod:cherry_leaves" }, "check_decay=true, decayable=true": { "model": "thewizardmod:cherry_leaves" } } } I allways get this error message. java.lang.IllegalArgumentException: Cannot get property PropertyBool{name=check_decay, clazz=class java.lang.Boolean, values=[true, false]} as it does not exist in BlockStateContainer{block=thewizardmod:cherry_leaves, properties=[]} This is my leaves class
  5. Yeah, your right. But if someone ask for a solution of a problem, why telling him to have a look in the original sources and not show him what you did? Possible someone has a source, that would help you to understand something, you can't find out, would you not be happy, if he shows you, how he did? I agree, that you will not learn too much, with copy and paste, but without sources, i could have a look into to see how people solve problems or did several things, i would be not able today to make my own codes. Copy and paste is allways the beginning of coding. Never saw someone starting with a blank editor and making a perfekt mod. A lot of things are just copies of other people sources.
  6. I've made maps for Enemy Territory, coded a port, for things like real aiming and weapon use in C. Then i've made different programs for Opencomputers in LUA. My 2 guis are still the top used ones there. Then i updated MC from 1.7.10 to 1.10.2 and all the good mods where gone. No witchery, no thaumcraft. But why? Ever think about? I think, the modders have no time and no passion to update for every change in new MC versions. I can understand it. And missing the good old mods is a reason, why so much people still playing 1.7.10. I know, that MC is not the best to learn coding and specialy java, but who will sit at home and starts with "hello world" and useless programs, like a movie database? If you want to learn something, you will do it for something usefull. I am living in the middle of nowhere and weeks of raining are a good reason to do something on the computer, that's better then just playing.
  7. And the biggest problem is, that you will find usefull tutorials, with examples for older versions, but not for newer ones. All you get is "look into the source", or "learn java faster" and so on. If someone asked, how to make something, the right way would be to show it with an example.
  8. I've started learning Java and modding, because i had nothing to do and wanted learn something new. When i am finished, i will give it away and someone else can renew it to a newer version.
  9. What's wrong with IInventory? Just because it's older? I will never update to a never version of MC.
  10. What else to use? And how?
  11. Tile Entity for the crop farm. I am using the fluidhandler, but the tank has a gui and i need to handle this too. The zombie will just put buckets into the slot and the tile entity will handle them. It works if a player did it, or buckets are put into it with a hopper. Just no update, if the entity moves puts a bucket into the input slot, until i leav the game and reload it.
  12. Because i rotated it. Flat was yesterday
  13. Too late. Have made an item, that can be crafted on the altar and used to spawn the zombie. This little zombies are like golems. They can do stupid work, but have no brain for more. Like politics
  14. Is there a way to make an item from an entity? Then i could give the player this to spawn the entity.
  15. Shit. Then i have to find another way to give player an item he can use to spawn the entity. Don't want to rewrite the whole crafting code, i have.
  16. It's MC 1.10.2 I don't need the ItemStack. I need the Item it self. What else to do, then stack,getItem() to get it?
  17. I am searching now for ages, how to get a specified spawn egg. What ever i try, i only get a white spawn egg, that can't spawn anything. Here's what i've tried at last.
  18. Here you can see, what i mean. Interaction with player or hopper is ok, but no update with the entity putting a bucket into the slot.
  19. Now i have another problem. If i put a full universial bucket into my crop farm as fuel, it will be put into the tank, if there's enough space. This also works with a hopper. If i put a full bucket this way (see spoiler). But it will not update the tank if the entity put's the bucket into the slot. If i leave the game then and restart the world, it's updated.
  20. It's ok, found it my self. Just changed this this.setHeldItem(EnumHand.MAIN_HAND, new ItemStack(pickupItem, pickupItemStack.stackSize)); to this this.setHeldItem(EnumHand.MAIN_HAND, pickupItemStack);
  21. Hi, i have an Entity, that picks items from ground and places them into tileentities with inventory. Works, but not with universal buckets. It shows up, that it has an filled universal bucket in hand, but in real the bucket is an empty bucket. This is the part, where i pickup the item from ground.
  22. It's ok. It works with null. Was the test world, that had a problem. Sometimes i press play and not create new world after changing something. Anyway...thanks for your help.
  23. Tried that. Will not work.
  24. I am using it at the moment. But this needs an EntityPlayer. If i use now minecraft.getminecraft.theplayer then the feeding is only working if the player is in the game. Looks like, i need a fakeplayer to keep it running on a server when not logged in.
  25. Hi, i am searching now for a time, but can't find a method to feed an animal/Entity. I have the position, the age, if it's in love, if the itemstack i am using is breeding item, but i can't find a way to feed the animal.
×
×
  • Create New...

Important Information

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