Skip to content

Changing block Ids after the fact

Marcelo edited this page Aug 1, 2017 · 1 revision

Changing block Ids after the fact

If you have configured your pstones a certain way and later on after people have been using them you wish to change the block id, here is the procedure you would take:

For example If I want to change a field from blockid 57 to 56

  1. Run "ps clean" from console (to make sure there are no orphaned fields laying around)
  2. Stop your server
  3. Run the following SQL: update pstone_cuboids set type_id = 56 where type_id = 57 (notice im updating the pstone_cuboids table, if your field is not a cuboid you would need to update the pstone_fields table)
  4. Start your server
  5. Run "ps revert" (This will change all orphaned fields blocks to the new type stored on the database)
Clone this wiki locally