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
comment_341550

Im trying to make the "spikes" block placeable in any direction and not only on the floor. This one:

 

158856-javaw-2015-06-28-16-06-31-42.jpg

 

I want to be able to place these on the ceiling. Any idea how this could be done? I tried to go the cheap way and change the texture from the punji stick from this mod which can be placed on the ceiling with the spikes texture from Trapcraft but it doesn't work since it just makes the different models grey:

 

latest?cb=20131224202955

 

Instead of green they become grey due the trapcraft spikes texture being grey. How can I make them look like a sprite and not a 3d model? I didn't know where to ask this.

comment_341567

This is the purview of IBlockStates and the blockstate json file.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author
comment_341624
14 hours ago, Draco18s said:

This is the purview of IBlockStates and the blockstate json file.

Can I modify that with just notepad or I need to install something else?

 

Can you tell me exactly what I need to change within the trapcraft.jar? I have no idea what im really doing but I didnt know where to ask. I just need to be able to place the spikes on the celing.

comment_341709

Lucky for you I just finished doing this for my own mod lol. The best way to do this is by adding 6 boolean properties to the blockstate, and using the resource blockstate json to rotate the model depending on which boolean is true

https://minecraft.gamepedia.com/Model#Block_states

 

EDIT: Use a direction property

Edited by iLaysChipz

comment_341713
10 minutes ago, iLaysChipz said:

The best way to do this is by adding 6 boolean properties to the blockstate, and using the resource blockstate json to rotate the model depending on which boolean is true

What? No, the "best" way is to have ONE enum property and have your rotation depend on that. You know, the way it is done literally everywhere, even for vanilla blocks like a dispenser.

 

19 hours ago, mineman12 said:

Can you tell me exactly what I need to change within the trapcraft.jar?

Nothing? 

I take it you are a mod user, not a developer? In that case you would need to find a mod that has that functionality, you can't just change something in the built jar file. Well, technically you can but never do that.

If you are a developer then look at vanilla's dispenser or some other block that can rotate in all 6 directions.

comment_341716
 
 
 
9 minutes ago, V0idWa1k3r said:

What? No, the "best" way is to have ONE enum property and have your rotation depend on that. You know, the way it is done literally everywhere, even for vanilla blocks like a dispenser.

Actually, yeah. What he said. The method I used was to have a thin block occupy multiple faces at once. Just use a DirectionProperty

image.png.5f2986a6d99805b229e08439de2cbd62.png

  • Author
comment_342188
On 5/9/2019 at 3:34 PM, V0idWa1k3r said:

What? No, the "best" way is to have ONE enum property and have your rotation depend on that. You know, the way it is done literally everywhere, even for vanilla blocks like a dispenser.

 

Nothing? 

I take it you are a mod user, not a developer? In that case you would need to find a mod that has that functionality, you can't just change something in the built jar file. Well, technically you can but never do that.

If you are a developer then look at vanilla's dispenser or some other block that can rotate in all 6 directions.

Im not a developer. Im trying to replace the punji sticks from tic with the spikes from trapcraft, it's the easier way since I can't program. I just don't know which jsons I need to replace.

 

 

in the TIC jar file there's a bunch of different punji json files, in assets/tconstruct/models there's punji.json, punji1.json... up to 5, also punji_stick.json and punji_corner.json

 

on the assets/tconstruct/ folder there's another punji.json file, so im not sure which to replace with spikes.json from trapcraft model folder

 

i don't care about the recipe or if it's just a cheap hack to do this, i just need it to show up on creative to properly place the trap on the ceiling that's all

Edited by mineman12

comment_342227
4 hours ago, mineman12 said:

since I can't program

If you cannot program, then unfortunately you cannot make a mod.

Minecraft modding is programming in Java.

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

comment_342240
32 minutes ago, mineman12 said:

I know, thats why I just wanted to replace the punji sticks with the spikes because it does the same thing.

If you meant you wish to replace the texture of the punji sticks, then you might want to create a texture pack instead of a mod.

If you wish to remove a block/item from a mod, then remove the recipe(s) for that block/item in one of the inits event. Never remove the registration of the block/item.

Edited by DavidM

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

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.