Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.12.2] Changing vanilla enchanting mechanich
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
fcelon

[1.12.2] Changing vanilla enchanting mechanich

By fcelon, April 6, 2018 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

fcelon    4

fcelon

fcelon    4

  • Creeper Killer
  • fcelon
  • Members
  • 4
  • 115 posts
Posted April 6, 2018

Hello,

I want to create a mod, that will add better bookshelves to minecraft. Those will be empty when crafted and player will be able to store books in them. Putting enchanted books into bookshelves around an enchanting table will increase the chance of getting corresponding enchantment upon using it. However, it is going to be a little bit tricky. I wonder if there is a way to change vanilla enchanting method to be able to tweak enchantemnt probabilities. If not, I can stop vanilla enchanting table GUI from appearing and instead open my own when player clicks at an enchanting table. This GUI would look similar to vanilla GUI, but would use my own enchanting method. Do you think it is a good idea?

  • Quote

Share this post


Link to post
Share on other sites

m00nl1ght    2

m00nl1ght

m00nl1ght    2

  • Tree Puncher
  • m00nl1ght
  • Members
  • 2
  • 22 posts
Posted April 7, 2018

An event is fired when a GUI is opened: GuiOpenEvent. You can use the GuiOpenEvent#setGui method to open your own GUI instead. However, I don't know if that has any side effects.

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Rollng
      Game crashes while loading world

      By Rollng · Posted 7 minutes ago

      Whenever i try to enter my world game closes itself. Heres crash report and log : Log, Crash
    • Linky132
      [SOLVED] [1.16.5 ] Dust Block Texture Glitch

      By Linky132 · Posted 30 minutes ago

      I figured it out. I had the render type set to translucent, when what it should have been on was cutout. Thanks for the help.
    • Klarks
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks · Posted 55 minutes ago

      So what needs to be implemented? My Entity?  
    • Linky132
      (1.16.2) Making a new capability (3)

      By Linky132 · Posted 1 hour ago

      I could be wrong, but I think you might need to add this code in the constructor: FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); And you may need to change the setup method to non-static.
    • Linky132
      [SOLVED] [1.16.5 ] Dust Block Texture Glitch

      By Linky132 · Posted 1 hour ago

      Also, the texture doesn't glitch when the dust is in a straight line, or when it's in its dot form (not the '+' shape).
  • Topics

    • Rollng
      0
      Game crashes while loading world

      By Rollng
      Started 8 minutes ago

    • Linky132
      4
      [SOLVED] [1.16.5 ] Dust Block Texture Glitch

      By Linky132
      Started 18 hours ago

    • Klarks
      12
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks
      Started 18 hours ago

    • e2rifia
      13
      (1.16.2) Making a new capability (3)

      By e2rifia
      Started 6 hours ago

    • Somonestolemyusername
      18
      [1.15.2] How Would I make a custom bow?

      By Somonestolemyusername
      Started Tuesday at 09:30 PM

  • Who's Online (See full list)

    • Rollng
    • Somonestolemyusername
    • SixSix
    • Edrax
    • Klarks
    • Linky132
    • scorpin1
    • Sensenmann
    • JoB76205
    • StealthyNoodle
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.12.2] Changing vanilla enchanting mechanich
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community