Jump to content

[1.19.2] stonecutting recipe to return each of two diferent blocks as result


perromercenary00

Recommended Posts

goods days
im trying to cut a minecraft door in half using the cutting table and i want it to return the door pieces 
cortar-Puertas-edit-edit.gif

i alredy have the two parts of the block as individual block doors 

mercblk:birch_door_top_puerta, mercblk:birch_door_bottom_puerta

i been experiment whit the recipes but no advances 

	this don't woks buts the general idea 
	{
  "type": "minecraft:stonecutting",
  "count": 1,
  "ingredient": {
      "item" : "minecraft:birch_door"
    
  },
  "result" : ["mercblk:birch_door_top_puerta", "mercblk:birch_door_bottom_puerta"], 
  "count" : 1
	}
	

the online recipe generators only has one output 

https://crafting.thedestruc7i0n.ca/

 

i think there must b a way 

could be an event triggering when using cutting table soo i can check if the output is mi "birch_door_top_puerta" then just drop the bottom part to player position
or a function in the block class for when the item is crafted 

thank for your time 

 

 

Link to comment
Share on other sites

The stone cutter block (like other vanilla blocks) only has one output/result slot. So its recipes can only have 1 output.

If you want something differernt, you will need to make your own block with its own recipes.

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

well them the second aproach 

i have this event code 

	@SubscribeEvent
	public static void onCrafting(PlayerEvent.ItemCraftedEvent event) {
	ItemStack items = event.getCrafting();
	Entity entity = event.getEntity();
	Level warudo = entity.level;
	System.out.println("--------------" + ((warudo.isClientSide) ? " local world " : " server world "));
	System.out.println("Crafted Description ID: " + items.getItem().getDescriptionId());
	System.out.println("Count: " + items.getCount());
	}
	

everitime i craft something in the crafting table its print output 

	-------------- local world
	Crafted Description ID: block.minecraft.birch_door
	Count: 3
	-------------- server world
	Crafted Description ID: block.minecraft.birch_door
	Count: 3
	

its just only works for crafting table 
i need to find an equivalent for the cutting tabble

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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