Jump to content

Recommended Posts

Posted

Hiya,

I'm looking at creating a 1.12.2 mod-pack for a charity stream, it would be building in a desolated desert world (hopefully)...

 

I would like to create a small mod that allows the user to shift right-click a designated block and have it give an item, in this instance it would be shift right-clicking sand and giving Ex Nihilo stones. This is similar to shift-right clicking dirt/grass in Botania mod which gives pebbles.

 

Is there a simple way to do this? does it even need a full mod?

 

Thanks in advance and sorry if this is in the wrong place...

 

 

Posted

It's very doable with a "full" (but fairly simple) mod.  If there is an existing mod out there which can already do this using a config or scripts, I don't know about it.

The way to do it is to subscribe to PlayerInteractEvent.RightClickBlock, then filter for your wanted block type(s) and have it create and drop the items in-world (or give them directly to the player).

Can also destroy the block from there if you want.

 

Btw, was this a mod request, or just a request for info so *you* can make the mod?

  • Like 1
Posted
13 hours ago, Laike_Endaril said:

It's very doable with a "full" (but fairly simple) mod.  If there is an existing mod out there which can already do this using a config or scripts, I don't know about it.

The way to do it is to subscribe to PlayerInteractEvent.RightClickBlock, then filter for your wanted block type(s) and have it create and drop the items in-world (or give them directly to the player).

Can also destroy the block from there if you want.

 

Btw, was this a mod request, or just a request for info so *you* can make the mod?

Thank you for replying, honestly I have never made a mod so I don't know how to go about it... so further research will be needed for me to make a mod,,,

if it was an easy/quick project for someone who knows how to make mods for minecraft 1.12.2 then it would save me a lot of time

Posted (edited)

It should be a quick and easy project for someone who already has a mod environment set up.  I'll start work on it today.

 

Edit: Scratch that, someone already made it: https://minecraft.curseforge.com/projects/scavenge?gameCategorySlug=mc-mods&projectID=282988

 

It looks like that mod should be able to do what you want.  It has a bunch of addon mods too, though I didn't look through them.

Edited by Laike_Endaril
  • Like 1
Posted
31 minutes ago, Laike_Endaril said:

It should be a quick and easy project for someone who already has a mod environment set up.  I'll start work on it today.

 

Edit: Scratch that, someone already made it: https://minecraft.curseforge.com/projects/scavenge?gameCategorySlug=mc-mods&projectID=282988

 

It looks like that mod should be able to do what you want.  It has a bunch of addon mods too, though I didn't look through them.

Thanks Laike_Endaril I've had a brief look and sounds perfect, thanks for your help ?

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.