Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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...

 

 

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?

  • Author
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

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

  • Author
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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.