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

Nuke3d

Members
  • Content Count

    19
  • Joined

  • Last visited

Community Reputation

3 Neutral

About Nuke3d

  • Rank
    Tree Puncher

Converted

  • Gender
    Male
  1. That is indeed how I have it setup, however, I have two providers now. I am thinking I just need one provider that checks the cap requested in getCapability and returns implimentation(lazy optrional.cast() actually). I can see how that works. I'll have to handle both in serializeNBT and deserializeNBT as well I believe.
  2. Item#initCapabilities returns an ICapabilityProvider. This is working great, but now my mod has a second capability that needs to be added to some items that already have the first capability. How is this handled? Or do I need to create a provider that implements both interfaces now?
  3. *sigh* <people who know what they're talking about> have already spoken up and told you what you needed to know. You didn't like what they had to say and now you're just being rude. You had some very insightful responses from people. Bottom line, it really isn't done because it really isn't feasible or worth the time. Minecraft is written in Java. I get that that may not be your favorite language, but if you want to do MC in C#, there are no known projects that will let you do this, so you'll have to do it yourself. You do not have the Java chops to do it yet and since there are no proje
  4. I would recommend you start out modding in Java, and then once you feel you have decent command of that, if you still want to try doing it in C# go for it. You'll likely have the tools to make it happen on your own at that point too, and could start assembling your own group around the project. Good luck whatever you choose!
  5. This. I mean, unless you are trying to use C# for fun or education, just use Java. All the wrappers and who knows what else will just cause more problems and make things run slower if they work at all.
  6. I appreciate the ideas. I think it seems too risky to call getOffer during initialization like that.I can see what is being done for Vanilla mobs, but other mod authors might be doing other things with that entity object. Thanks for the ideas though! I will revisit another time.
  7. Doesn’t that require an entity as an argument? At this point in unit don’t have a reference to an entity. Perhaps I could just create one but not sure if that will work?
  8. Going to bump this as I just want to confirm something I *think* I know, but perhaps my Java-fu is not strong enough. I am trying to modify the list of trades for a villager type by removing any trade that involves emeralds, which should be the great majority of vanilla trades. During init I can get the trades. I can see each one, but they appear to be just a pointer to the object that implements ITrade for that trade. That being the case, I cannot actually see an actual trade to see if Emeralds are involved, so I can't delete the trade based on that. I don't want to just clear the
  9. Alright, that is something I'll have to put off until later then as it sounds like quite a bit of work. For now, just removing the vanilla emerald trades will work. Would be great if forge allowed us more control over the trades, or even made another event the fired after the trades were chosen that let us modify the final list but I digress. Thank you!
  10. Well, it's a little more than that. Maybe my understanding is not correct, but I thought the list of trades were possible trades, but they were not all offered every time. For instance, the unmodifed level 1 farmer trades are wheat, potatoes, carrots, beetroot, and bread, but not all of those appear as a trade when clicking on the villager every time. I haven't followed the code but I assume there is something that causes only some of those to appear on the list. I guess I need to learn what causes it and figure out how to get certain items to appear on the list every day. (The concept is to m
  11. I have been able to populate my alternate trades into the villager trade lists. Now I want to see if certain trades can always be available(the max uses will still be enforced, but I want them to always be in the list.) Is there any way to do this? Also, I want to remove most of the emerald trades. I *think* the best way to do this is in the trade initialization process to spin through event.getTrades().get() for each skill level of the trade and remove the ones I don't want. Just want to make sure I'm doing it the best way. Source at https://github.com/nuke3d/NukesEcon if interested.
  12. That worked. Thank you! You may get yourself a juice box. =]
  13. Thank you! I will give it a shot. Money was never supposed to grow on trees like this. =p
  14. Some time ago I used the GLM system to modify drops for several mobs, chests, etc. It all seemed to work well and I have since moved on to other parts of my mod. Yesterday I noticed that when a villager harvested some wheat, it was adding some of my drops. I did not do any harvest drops, yet there it was. In looking closer, it looks like the loot table ID is "minecraft:blocks/wheat", which I expected. The GLM that is being matches is my villager GLM: { "type": "nukesecon:addcoins", "conditions": [ { "condition": "minecraft:entity_properties", "predicate": { "t
×
×
  • Create New...

Important Information

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