Plants, Trees, Leaves, Crops, Dirt? Please Help!

Started by SheapCreaper on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Plants, Trees, Leaves, Crops, Dirt? Please Help!
Mon, 09/04/2017 - 19:28 (edited)

- How do you create crops that grow in farmland? I have different growth stages for the plant I want to grow, but none of the answers I've found have been very detailed.

- How do I create saplings that grow into the trees they come from? I'm working without custom schematics, but the trees are made with custom blocks and different heights.

- How do I get different drops from leaves (apples, saplings, etc.), and how do I get them to work with shears?

- Plants such as custom flowers appear large and block-like when held; is there a way of getting them flat like they are in vanilla?

- Can you make another kind of dirt that can be tilled and planted on without tilling?

- Can you have more than one kind of tree per biome? If so, how?

Thanks for any help! PLEASE be specific; this stuff is confusing.

Edited by SheapCreaper on Mon, 09/04/2017 - 19:28
Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're asking pretty complex
Mon, 09/04/2017 - 19:42

You're asking pretty complex questions x) but almost everything can be done, so.

  1. For crops you have to create first 1 block for every stage or your crop, but you'll need custom model for those, cause in MCreator you can only select normal 1x1x1 block or cross-like block.
    Then you just have to add a stack event "on update tick", set 2 conditions: is day  and randomPossibility[] (set the possibility to whatever you want, higher="faster growth") and set 2 events: remove block and place block selecting the block for your next crop stage.
    So you have to repeat these passages till you reach your last stage where you have to set the events so that you can get your crop on rightclick and make your last-stage block, disappear leaving only a farmed dirt block.
  2. For the sapling. You HAVE to create a .schematic or you cannot make spawn a tree from a sapling. In the sapling block create a stack event update tick , set randomPossibility[] as condition (I suggest to set it really low, like 0.1 or lower!) and add events: remove block and place shematic (select your tree .schematic).
    To make it spawn with bonemeal, I guess you can use global events (when bonemeal is used) selecting  as condition blockAt[i,j,k] == your sapling and again stack event, remove block/place schematic at randomPossibility.
  3. To obtain different drops from leaves you first need custom leaves block. Then events: when player destroy block ---> spawn gem = your leaves with the condition that you have shears in you hand. Otherwise, at randomPossibility, spawn gem = sapling/apple/fish/whatever
    Note: you have to set the drop amount of your leaves block to 0
  4. Selecting cross for the block model of the plant should do the trick
  5. Do not really know what you mean D: but you can create a custom dirt block and on rightclick with itemInPlayersHand = hoe ---> remove block and place farmland 
  6. "Yes". You just have to create every tree you want in minecraft, then export them, create some new structure gen using your tree .schematics and make them spawn in your biome.

That should be all

Joined Feb 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:You're asking pretty complex
Mon, 09/04/2017 - 20:29

@#1 Thanks for the help!

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm in 2020.2, and I have…
Tue, 08/11/2020 - 12:25

I'm in 2020.2, and I have the same questions about the sapling stuff. There's nothing about a schematic, at least not that I know how to make, so I thought a structure would be suitable, but there's no block for it. If that's the only way, I can resort to a long bit of code, but there has to be a better way of doing it

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can show you how to make…
Wed, 08/26/2020 - 01:03

I can show you how to make your own working sapling that grows, but you'll have to update to 2020.4 (in reply to Mister_Cheese_Face)