Jump to content

JaviBag

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by JaviBag

  1. Hello, How can I load the config before load my custom blocks. I get this error: Cannot get config value before config is loaded Thank you
  2. Hello if anyone can help me. I want now to make my mod universal to share it. I need to do with a command /command String String To give the player a special button that i have already created with the String String parameters in constructor or if it is not possible to set another atrib to de object . If anyone has any idea! Thank you
  3. I'm not finding it. All my mod is working The only thing I want now is to make it universal so I can share it. I need to do with a command /button String String and have that give the player a button that was created with the String String parameters. If anyone has any ideas
  4. or /set .... RoomGames to set the button that the player has in hand
  5. Warjort I can ask you for help with something else, I made a button that turns on the light in my house, one for each room. I made a Button class with all the methods. A method that it has, you put the name of the room (the same one that has the smart lamps api) and it creates a String[] with the ids. With another method it turns it on. Then I made a son class with the name of each room to write the attribute with the lamp ids in each one and call the parent method to turn them on. Can you think of a way so that the user with a set from the minecraft console can modify the operation of the button, to make this mod more universal? The idea that occurs to me but I don't know if it's possible, that the player writes to the console something from /give Player button X. Example (/give Player button RoomGames) where X is a variable. Thank you so much.
  6. Thank you so so much Warjort
  7. Thank you so much Warjot, now i understand how use method works. I didnt found the method who calls use() Actually I was able to do what I wanted to do but the command I want to execute is thrown twice on the button. i can fix it with a counter, when it reach 2 it reset. this is quite ugly but it works but the eyes hurt a little
  8. Sorry im very new on this. what I don't understand is how in an event I ask what block the player presses with a RightClickBlock For example i can use later inside the method e.getItemStack() and return what the player has on the hand but not which block is pushing with this item. or on the side of the block what would be the event to check the ButtonBlock.use() If you can please helpme with both. I know that It's enough with just one. Thanks a lot!
  9. I dont know why it doesnt work
  10. Thank you for your reply! But how i ask if a player is touching a metal button?
  11. Sorry for my newbie question. I need to do a new event when a player push a button but only metal button. Thank you!
×
×
  • Create New...

Important Information

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